Well actually it's easy. You'd just have to setup the Projection matrix with an orthographical view. To do this, use:
After having set the matrices you can draw any primitve directly to the screen coordinates using glBegin, glEnd and glVertex2f with screen coordinates. A little example:
You can use many primitives with glBegin, just search for pictures with "gl primitives" in Google and it will show you some. And have a look into the Redbook for explanations of how to use them.
And by the way, if you have any more OpenGL regarding questions, could you post them all in one of your threads?
glMatrixMode GL_PROJECTION glLoadIdentity gluOrtho2D(0, GRAPHICSWIDTH, GRAPHICSHEIGHT, 0) glMatrixMode GL_MODELVIEW glLoadIdentity glDisable GL_DEPTH_TEST 'you may want to disable depth testing so you can define the render order exactly
After having set the matrices you can draw any primitve directly to the screen coordinates using glBegin, glEnd and glVertex2f with screen coordinates. A little example:
glBegin GL_LINES glVertex2f X1#, Y1# 'draws a line from P1 to P2 glVertex2f X2#, Y2# 'note that these coords are screen coords glEnd
You can use many primitives with glBegin, just search for pictures with "gl primitives" in Google and it will show you some. And have a look into the Redbook for explanations of how to use them.
And by the way, if you have any more OpenGL regarding questions, could you post them all in one of your threads?