• Advertisement


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

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

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