How to render perfect wireframed rectangle in 2D mode with OpenGL??

Edit: just so you know: I have not solved this problem perfectly yet, currently I am using 0.5px offset, it seems to...

Order of matrix multiplications in OpenGL?

glDisable(GL_DEPTH_TEST); glViewport(0/*left*/, 0/*botton*/, 200/*width*/, 200/*height*/); //T4 glMatrixMode(GL_P...

gluPerspective parameters- what do they mean??

I wonder about the gluPerspective parameters. In all examples I see fovy is set to around 45-60degrees I've tried t...

OpenGL Mouse Tracking (Freeform Line)?

At the moment I am trying to make a program that tracks the mouse coordinates so that it draws a freeform line as yo...

What is the simplest way to render a 3D cube with a single lighting source??

Depicted below is a crappy Photoshop mockup of a three-dimensional cube. Here are my parameters: The solution mus...

Trying to make a sphere with triangle strips on OpenGL?

I'm trying to make an sphere with the OpenGl primitive GL_TRIANGLE_STRIP from OpenGL but it seems I'm missing someth...

GL_TRIANGLE_STRIP vs GL_TRIANGLE_FAN?

I need an example of a polygon that can be done only by GL_TRIANGLE_STRIP and another polygon that can be done only ...