Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

VisionD

OpenGL [Qt]: Examples code for using OpenGL with Qt

This topic is 5559 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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]

Share this post


Link to post
Share on other sites
Advertisement
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

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!