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 ...

How to Get Max Number of Multitextured Units?

Lets say I have a function where I want the user to be able to select the appropriate texture in a type safe manner....

How to get the GL library/headers??

#include <gl\gl.h> #include <gl\glu.h> #include <gl\glaux.h> This is an example, but where to ...

How to fix this Error: #include <gl/glut.h> “Cannot open source file gl/glut.h”?

I was doing some OpenGL programming in C++. This is part of my code: #include &lt;time.h&gt; #include &lt;windows....

What is Half vector in modern GLSL??

http://www.lighthouse3d.com/opengl/glsl/index.php?ogldir2 reports that half vector in OpenGL context is 'Eye posit...

Starting off with OpenGL under Cygwin?

Is it possible to compile and run OpenGL programs from under Cygwin? If yes, how? ...