[Qt]: Examples code for using OpenGL with Qt
Hello,
could some one give a good website, an example snipplet, a good website link or something like about howto program OpenGL in Qt?
I installed the Free Edition under Gentoo (Linux) but the OpenGl examples are missing. Plz help!
Really, really cool would be, if someone could explain me, howto run the code of NeHe Tutorials in Qt under Linux.
Thx much
VisionD
[edited by - VisionD on September 24, 2003 4:59:26 AM]
Actually it''s quite easy.
You just have to overload the QGLWidget class and override three methods (initializeGL(), resizeGL(), paintGL()). Then use your Widget as the main Widget of your application.
Place the Nehe Code for initialization, resizing, and rendering in the three functions.
Hope it helps
chrisa
You just have to overload the QGLWidget class and override three methods (initializeGL(), resizeGL(), paintGL()). Then use your Widget as the main Widget of your application.
Place the Nehe Code for initialization, resizing, and rendering in the three functions.
Hope it helps
chrisa
quote:Original post by VisionD
Hello,
could some one give a good website, an example snipplet, a good website link or something like about howto program OpenGL in Qt?
I installed the Free Edition under Gentoo (Linux) but the OpenGl examples are missing. Plz help!
Really, really cool would be, if someone could explain me, howto run the code of NeHe Tutorials in Qt under Linux.
Thx much
VisionD
[edited by - VisionD on September 24, 2003 4:59:26 AM]
Type assistant in a shell, and browse through Qt''s excellent documentation.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement