котировка
glClearColor (0.0f, 0.0f, 0.0f, 0.0f);
glClear (GL_COLOR_BUFFER_BIT);
glLoadIdentity ();
glPushMatrix ();
glTranslatef (-0.5f, -0.5f, 0.0f);
glPushMatrix ();
glRotatef (90.0f, -180.0f, 0.0f, 0.0f);
glPopMatrix ();
glBegin (GL_TRIANGLES);
glVertex3f (0.5f, 0.5f, 0.0f); glColor3f (1.0f, 0.5f, 1.0f);
glVertex3f (1.5f, 0.5f, 0.0f); glColor3f (1.0f, 0.5f, 1.0f);
glVertex3f (0.5f, 1.0f, 0.0f); glColor3f (1.0f, 0.5f, 1.0f);
glVertex3f (0.5f, 1.0f, 0.0f); glColor3f (1.0f, 0.5f, 1.0f);
glVertex3f (1.5f, 0.5f, 0.0f); glColor3f (1.0f, 0.5f, 1.0f);
glVertex3f (1.5f, 1.0f, 0.0f); glColor3f (1.0f, 0.5f, 1.0f);
glVertex3f (0.5f, 1.0f, 0.0f); glColor3f (1.0f, 0.5f, 1.0f);
glVertex3f (1.5f, 1.0f, 0.0f); glColor3f (1.0f, 0.5f, 1.0f);
glVertex3f (1.0f, 1.5f, 0.0f); glColor3f (1.0f, 0.5f, 1.0f);
glEnd ();
glPopMatrix ();
Я сделал розовый пятиугольник, WEEEEEEEEE! Не могу понять, как получить GLRotatef работает, хотя.