Using raw OpenGL in QQuickItem?
-
Hi,
I'm trying to implement a custom QQuickItem that uses raw OpenGL calls to render itself. Qt 5 docs says:"create a FramebufferObject, render into it and use the result as a textured node in the scene graph, for instance using a QSGSimpleTextureNode"
But I'm new to OpenGL and didn't ever work with Framebuffer Object before. I didn't find any appropriate example on the Internet. Could you, please, provide here code snippets demonstarting the proposed steps:
- creating FrameBuffer Object
- rendering into it (for example, line or rectangle)
- using the result to initialize QSGSimpleTextureNode
Thank you very much in advance!
-
http://qt-project.org/forums/viewthread/21396/#114311
doesn't help you at all?
In my thread mentioned above is also a link to the "Ogre":http://qt.gitorious.org/qt-labs/qmlogre implementation which does basically the same thing. -
[quote author="z.emb" date="1360759775"]http://qt-project.org/forums/viewthread/21396/#114311
doesn't help you at all?
In my thread mentioned above is also a link to the "Ogre":http://qt.gitorious.org/qt-labs/qmlogre implementation which does basically the same thing.[/quote]Thank you, it helped me, but... not enough.