I just want the texture to map to that sphere inside the push/pop, but instead it’s being applied to the whole object (the leg, torso, and body… i left out some code).
The glPush/pop have not effect on the texture setting.
If you just want to texture the sphere, then after drawing it, use glDisable(GL_TEXTURE_2D). Also remember to use glEnable(GL_TEXTURE_2D) before drawning the sphere, or on the next pass drawing the sphere will not have any texture.
then the rest will only be what ever color you have selected.
Originally posted by traDMB:
[b]Hi,
I’ve got the following code:
I just want the texture to map to that sphere inside the push/pop, but instead it’s being applied to the whole object (the leg, torso, and body… i left out some code).
How do I get it to just texture that one sphere?
Thanks!
Jen[/b]
[This message has been edited by nexusone (edited 11-27-2002).]