Original Post
I''m learning how to rotate objects and using Stacks, the small snippet of code is as follows
glTranslatef(0.0f, 0.0f, -5.0f);
glRotatef(fangle, 0.0f, 0.0f, 1.0f);
glPushMatrix();
glTranslatef(0.5f, 0.0f, 0.0f);
glColor3f(1.0f, 0.0f, 0.0f);
glBegin(GL_POLYGON);
auxSolidSphere(1.0);
glEnd();
glPopMatrix();
I''m trying to just rotate the sphere around the origin, but I don''t want the sphere to spin around it''s axis. How do I do this? I''ve tried a few things and just can''t figure it out.
One other thing, I''ve read the websites about Cg, but how do you use it with OpenGL?