How do I change the following lines during the initialization, so that
the origin is at the center and not at the bottom left ?
Code:glMatrixMode ( GL_PROJECTION ); glLoadIdentity(); gluOrtho2D ( 0.0, (GLdouble)320, 0.0, (GLdouble)240 );
This is a discussion on Little help setting up OpenGL within the Tech Board forums, part of the Community Boards category; How do I change the following lines during the initialization, so that the origin is at the center and not ...
How do I change the following lines during the initialization, so that
the origin is at the center and not at the bottom left ?
Code:glMatrixMode ( GL_PROJECTION ); glLoadIdentity(); gluOrtho2D ( 0.0, (GLdouble)320, 0.0, (GLdouble)240 );
Manasij Mukherjee | gcc-4.8.0 @Arch Linux
Slow and Steady wins the race... if and only if :
1.None of the other participants are fast and steady.
2.The fast and unsteady suddenly falls asleep while running !
For a clipping rectangle with width xSize and height ySize:
Code:gluOrtho2D(-xSize/2.0, xSize/2.0, -ySize/2.0, ySize/2.0);
Consider this post signed
Excellent.
Thank you very much...
Manasij Mukherjee | gcc-4.8.0 @Arch Linux
Slow and Steady wins the race... if and only if :
1.None of the other participants are fast and steady.
2.The fast and unsteady suddenly falls asleep while running !