glTranslatef(2.0, 3.0, -1.0); glRotatef(45.0, 0.0, 1.0, 0.0); glBegin(GL_POLYGON); glVertex3f(0.0, 0.0, 0.0); glVertex3f(1.0, 0.0, 0.0); glVertex3f(0.0, 1.0, 0.0); glEnd();