Jump to content
  • Advertisement

Archived

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

GuineaPig

I've made a sloppy port of lessen 10 to OOP

This topic is 5861 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

I''ve setup Lesson 10 from the turtorials in an OOP class structure. I also merged in a sample of displaylist code from lesson 12, so when you run the compiled code you''ll see a box with a second texture in the middle of the room as you move about. I set it up for maximum ease of compilation however, and not elegence, so the port is somewhat ''sloppy'' in some aspects. I put all the declarations from Lesson 10 (and those used from 12) in a header file called gp_ogl.h, and all the instance implementation code in a header called render.h. Only the main windows loop (with the keyboard queries) remains in a cpp file, now called mainloop.cpp. If anyone wants, I can upload this project, and someone can improve it further.

Share this post


Link to post
Share on other sites
Advertisement

  • Advertisement
×

Important Information

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

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!