CSCI336 ass5
Author: Scott O'Brien
As you might have seen in my Previous posts demo reel, here you will find the code attached for my CSCI336 As
signment 5. Looking at how a few of my other friends completed their assignments for this task, I enjoyed having a more modular approach to OpenGL. For instance, while it is possible to do this task in one function, the idea was that I wrapped my OpenGL calls in appropriate classes.
Examples of this are a GL_LIGHT is abstracted by the light class, you create a light, give it a type, and don’t have to worry about it being GL_LIGHT0.. GL_LIGHT7 (although, you can only have 7 li
ghts in your scene with this method). Textures are contained in Texture structs with the appropriate functions to load and unload them.
The code is not as ne
ar polished and as complete as I wanted it to be, but it ended up being complete enough to build my assignment upon and satisfy all the requirments. Hope you enjoy
DOWNLOAD Code (link removed, I’ll re-enable it when the assignment spec for this years students changes enough not to copy this)
