- glPushMatrix();
- glTranslatef(XPos,YPos,0);
- glTranslatef(66.6,33.3,0);
- glRotatef(Angle,0,0,1);
- glBegin(GL_POLYGON);
- glColor3f(1, 0, 0); glVertex3f(0, 0, 0);
- glColor3f(0, 1, 0); glVertex3f(100, 0, 0);
- glColor3f(0, 0, 1); glVertex3f(100, 100, 0);
- glEnd;
- glPopMatrix();