Moving Object: Example Solid Cube
Hello,
I am trying to move my object: as the example is solid cube. Any hint how do I do it?
PS: Not moving the camera, but the object. Should I translatef every corner of my cube?
glPushMatrix();
glTranslatef(x,y,z);
cubeDraw();
glPopMatrix();
//really dont need the push and pop to achieve translation though.
glTranslatef(x,y,z);
cubeDraw();
glPopMatrix();
//really dont need the push and pop to achieve translation though.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement