Hello (…);
I’ve just started learning OpenGL.
I have done a few programs and everything seems to be working fine.
Till now, I’ve ignored the initializing part of the code, focusing on the drawing part.
Now, I want to set it up such the origin is at the center, of the window.
Is that set from the following lines? :
glMatrixMode ( GL_PROJECTION );
glLoadIdentity();
gluOrtho2D ( 0.0, (GLdouble)320, 0.0, (GLdouble)240 );
or tool specific (In that case, I’m using sfml…and would post some more code) ?