VERY grizzled OpenGL coders needed

Dogcow

Registered
I've spent the past week and a half working on an OpenGL program for a class. It took me three days just to find a texture loader that would compile, but whenf I attempt to run my program using the texture loader, it exits out. Also, once I added just a few lines of lighting code, my program started not liking the glLookAt function.

Any help would be appreciated. The texture loader code (which opens an image file and places its contents inside a texture) is way beyond my skill level. I have no idea where to start to fix it... The lighting code is very simple and I'm rather confused that it doesn't work.

Program 2

Thanks in advance,
-Dogcow "moof!"
Visit The Underground
 
You shouldn't call loadGLTextures() in display(). Doing so causes the texture file to be needlessly reloaded over and over.
 
Back
Top