In OpenGL, I can easily rotate a triangle by something like this:
glRotate(90, 1, 0, 0); glBegin(GL_TRIANGLES); glVertex3f(-1,0,0); glVertex3f(1,0,0); glVertex3f(0,1,0); glEnd(); glRotate(-90, 1, 0, 0); However, I would like to rotate only ONE of the vertices, not all three that make up the triangle, but I would still like it to draw the triangle in the end.
I've tried things like this, but with no success:
glBegin(GL_TRIANGLES); // Rotate only this vertex. glRotate(90, 1, 0, 0); glVertex3f(-1,0,0); glRotate(-90, 1, 0, 0); glVertex3f(1,0,0); glVertex3f(0,1,0); glEnd(); Any ideas?