glMatrixMode GL_PROJECTION
glLoadIdentity
glOrtho -1 1 -1 1 -1 1
glMatrixMode GL_MODELVIEW
glLoadIdentity
glPushMatrix
glRotate 30 0 0 1.4
glColor 0 0 1
glBegin GL_QUADS
glVertex2 -.15 -.15
glVertex2 .15 -.15
glVertex2 .15 .15
glVertex2 -.15 .15
glEnd
glPopMatrix
glColor 1 0 0
glBegin GL_TRIANGLES
glVertex3 0.5 0.25 0.5
glVertex3 0.75 0.25 -0.5
glVertex3 0.75 0.75 -0.5
glEnd
