Hi there, I'm looking at embedding a pyglet driven OpenGL context inside a QT4.5 QWidget.
What is the best way of doing this? Should I create a new QWidget subclass extending it to produce pyglets GL context? Or should I somehow tell Pyglet to use the GLContext from Qt? I'm hoping to be able to do the second but I'm unsure of the Pyglet internals to do this. If I have a QtOpenGL.QGLWidget and I call the context() method, I get back a <PyQt4.QtOpenGL.QGLContext object at 0x........>. Doing a dir() on this QGLContext Object we have... 'bindTexture', 'chooseContext', 'chooseVisual', 'create', 'currentContext', 'deleteTexture', 'device', 'deviceIsPixmap', 'doneCurrent', 'drawTexture', 'format', 'generateFontDisplayLists', 'getProcAddress', 'initialized', 'isSharing', 'isValid', 'makeCurrent', 'overlayTransparentColor', 'requestedFormat', 'reset', 'setFormat', 'setInitialized','setTextureCacheLimit', 'setWindowCreated', 'swapBuffers', 'textureCacheLimit', 'windowCreated' QGLContext docs for pyqt4 are here: http://docs.huihoo.com/pyqt/pyqt4/html/qglcontext.html Anybody want to give me some direction on this? Has anyone done something like this before. If I just make the context the active one, will pyglet render into it without having a pyglet display open? Any help is much appreciated. Kind Regards Crispin Wellington --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "pyglet-users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/pyglet-users?hl=en -~----------~----~----~----~------~----~------~--~---
