Newbie question
You do this by specifying a transform matrix that every vertex in the polygon will be transformed with.
What API are you using? OpenGL, DirectX or something else?
What API are you using? OpenGL, DirectX or something else?
Then you''ll want to do this:
glMatrixMode(GL_MODELVIEW);
glLoadIdentity();
glTranslatef(x,y,z);
This way when you render the polygon all vertices will be moved by adding (x,y,z).
glMatrixMode(GL_MODELVIEW);
glLoadIdentity();
glTranslatef(x,y,z);
This way when you render the polygon all vertices will be moved by adding (x,y,z).
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement