> I have got 3-D open-gl graphics running fine in my flight sim.
> I can NOT seem to draw simple lines in 2-D, though.
> Take this example:
> glVertex2f( 50, 50);
> I do NOT get a line drawn across those pixels!
pixel addresses unless you have carefully setup the
three transformations -- modelview, projection and viewport.
OpenGL does not have 2D graphics separate from 3D graphics;
everything goes down the same (3D) pipeline.
glVertex2f (-50.0, -50.0);
is exactly equivalent to:
glVertex3f (-50.0, -50.0, 0.0);
which is exactly equivalent to:
glVertex4f (-50.0, -50.0, 0.0, 1.0);
They all go through the same processing.
Andy V, OpenGL Alpha Geek (never a Digital spokesperson)
(To send mail to me, change "NoSpamPlease" to "com".)