Glhypnotizer, PaintOutsidePaintEvent and render outside the main loop?
General and Desktop
1
Posts
1
Posters
700
Views
1
Watching
-
For code organization I need to call OpenGL from another thread.
I am trying to follow the glhypnotizer example at (http://blog.qt.digia.com/blog/2011/06/03/threaded-opengl-in-4-8/) and want to silence the
makecurrent()function, but can't get it work in modern Qt5. For example, PaintOutsidePaintEvent is missing when I grep the Qt source...How can I render OpenGL onto a widget from another thread?
@while (true)
{// the dream
auto foo=somework()
render->render(foo);
}@