• Create Account

### #Actualmhagain

Posted 14 February 2013 - 08:02 PM

    glMatrixMode( GL_PROJECTION );
glOrthof( 0, 320, 0, 480, -1, 1);


glOrtho doesn't load the generated ortho matrix onto the stack; what it does is take the current matrix and multiplies it by the generated ortho matrix (http://www.khronos.org/opengles/sdk/1.1/docs/man/).  So instead you do:

    glMatrixMode( GL_PROJECTION );
glOrthof( 0, 320, 0, 480, -1, 1);


And it works!

### #1mhagain

Posted 14 February 2013 - 08:02 PM

    glMatrixMode( GL_PROJECTION );
glOrthof( 0, 320, 0, 480, -1, 1);


glOrtho doesn't load the generated ortho matrix onto the stack; what it does is take the current matrix and multiplies it by the generated ortho matrix (http://www.khronos.org/opengles/sdk/1.1/docs/man/).  So instead you do:

    glMatrixMode( GL_PROJECTION );
glOrthof( 0, 320, 0, 480, -1, 1);


And it works!

PARTNERS