Recommended Posts

int DrawGLScene(GLvoid) // Here''s Where We Do All The Drawing
{
bool status=true;
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
glLoadIdentity(); // Reset
glTranslatef(x,y,z); //
glRotatef(rotx,1.0f,0.0f,0.0f);
glRotatef(roty,0.0f,1.0f,0.0f);
glRotatef(rotz,0.0f,0.0f,1.0f);
glColor3f(1,1,1);
glBegin(GL_QUADS);
glVertex3f(-1,-1,0.0f);
glVertex3f(1,-1,1.0f);
glVertex3f(1,1,0.0f);
glVertex3f(-1,1.0f,0.0f);
glEnd;
glBind(GL_TEXTURE_2D,texture[0]);
DrawSprite(-3,-3,3,3,8,8,fr);
glBind(GL_TEXTURE_2D,texture[0]);
DrawSprite(-1,-1,1,1,16,16,fr);
rotz+=1.0f; -Doesnt seem to work
fr++;
if (fr == 18) fr = 0;
return status;
}
can someone please tell me y the rotation doesnt work it doesnt rotate on the z and the only other place i used rotz is in initialization where it is a GLfloat;