Hi,
I've got the following code:
glPushMatrix();
glTranslatef (0.178, 0.0, 0.0);
drawRightLeg();
glPopMatrix();
glPushMatrix();
glBindTexture(GL_TEXTURE_2D, texture[filter]);
glTranslatef (0.0, 0.0, 0.0;
glScalef (0.275, 0.152, 0.153);
drawSphere(1.0);
glPopMatrix();
glPushMatrix();
glRotatef ((GLfloat) EXTEN, 1.0, 0.0, 0.0);
glRotatef ((GLfloat) BTWIS, 0.0, 1.0, 0.0);
glRotatef ((GLfloat) ROT, 0.0, 0.0, 1.0);
drawBody();
glPopMatrix();
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