- glPushMatrix;
- glTranslate(0.5,0.5,-6);
- glRotate(rot,0,1,0);
- glTranslate
- glBegin(GL_QUADS);
- glColor3f(1,0,0);
- glVertex3f(0,0,0);
- glVertex3f(1,0,0);
- glVertex3f(1,1,0);
- glVertex3f(0,1,0);
- glEnd;
- glPopMatrix;
- // Dann die Rotation fürs nächste mal berechnen
- rot := rot + 1;
- if rot>360 then rot := rot - 360;