[Qt-embedded-interest] Qt integration with OpenGL ES problem

Hui Tang Hui.Tang at cybercom.com
Thu Jun 18 07:58:17 CEST 2009


Hi, all
We compiled Qt for OpenGL ES,  And we modified the Qt source file pvrqwswsegl.c, 'cause we couldn't compile successfully without these changes, we couldn't found any definition about "WSEGL_CAP_WINDOWS_USE_MBX_SYNC" or "WSEGL_CAP_PIXMAPS_USE_MBX_SYNC".
Original:
/* Capability information for the display */
/*static WSEGLCaps const wseglDisplayCaps[] = {
    {WSEGL_CAP_WINDOWS_USE_MBX_SYNC, 1},
    {WSEGL_CAP_PIXMAPS_USE_MBX_SYNC, 1},
    {WSEGL_NO_CAPS, 0}
};*/
Now:
static WSEGLCaps const wseglDisplayCaps[] = {
    {0, 1},
    {0, 1},
    {WSEGL_NO_CAPS, 0}
};
We only found some definitions in "#include <wsegl.h>"  like this, so we changed above data structure according this definition:
typedef enum WSEGLCapsType_TAG
{
WSEGL_NO_CAPS = 0,
WSEGL_CAP_MIN_SWAP_INTERVAL = 1, /* System default value = 1 */
WSEGL_CAP_MAX_SWAP_INTERVAL = 2, /* System default value = 1 */
WSEGL_CAP_WINDOWS_USE_HW_SYNC = 3, /* System default value = 0 (FALSE) */
WSEGL_CAP_PIXMAPS_USE_HW_SYNC = 4, /* System default value = 0 (FALSE) */

} WSEGLCapsType;

The compiling is ok, we test helloworld_gles example in Ot, we got some trouble rendering image, with many different color flashing fast on the widget, and twinkling very fast. Do you think that it's the problem what we have done to Qt source?
If yes, how should the really structure be ( static WSEGLCaps const wseglDisplayCaps[] ) ?
If the original structure arguments are right, why it can't found the definition of WSEGL_CAP_PIXMAPS_USE_MBX_SYNC and WSEGL_CAP_WINDOWS_USE_MBX_SYNC?

Thanks

Best Regards
  favor
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt.nokia.com/pipermail/qt-embedded-interest/attachments/20090618/bdf4e27b/attachment.html 


More information about the Qt-embedded-interest mailing list