PDA

View Full Version : Switching QGLWidget maintainer



seim
9th July 2009, 15:19
Hello, I would appreciate your comments in following topic:

I would like to create a plugin based application that covers some games. Any game should be implemented in separate plugin. The core of such application would create an QGLWidget and offers the QGLWidget instance to currently active plugin that handles drawing its content. The goal I would like to achieve is to switch the maintainer of QGLWidget that handles drawing and prevent any blinking.

QGLWidget implements behaviour in its descandent, so the first idea is to create some wrapper that would redirect each handler to an active plugin. Is there any another (perhaps well-tried) way, how to achieve switching? Perhaps some way supported by GL?

It would be also limitated by slow graphic card and the resolution that should be equal to 1280x1024 x 2.

Thanks for your advices

seim
15th July 2009, 12:36
Please, do you have any ideas?