Im not sure if you have a no homework help policy or not. If so i appologize.
But yea this is my homework. We got a framework and were supposed to make cubes, rotating spheres. moving camera and textures. Right now i only have the textures left, and im not sure how to do it. And was hoping you guys could give me some pointers.
Here is the code: http://pastebin.com/ASaEQppv