PDA

View Full Version : glRasterPos2f and 3D Primitives



06-21-2002, 08:26 PM
I need to draw a cross that indicates the rotation of the axes. Can i use this :

glPushMatrix();
glRasterPos2f((w/2),3*(h/4));
glBegin(GL_LINES);
glVertex3f(BlaBla....
glEnd();

Or is it not possible to translate to a 2D Point and draw a 3D Primitive at this point ?

Thanks in advance
Tom

06-21-2002, 08:28 PM
I know that i have to set the Rotation after the PushMatrix, but that't not a problem. I need to know if i'm doing something wrong, or if it is not possible to use RasterPos2f for this problem.

Tom