Sign in to follow this  
rosicky2005

Problem on GL Matrix Operation

Recommended Posts

For the following code: // viewport transform for 1:1 pixel=texel=data mapping //specify matrix type glMatrixMode(GL_PROJECTION); //Reset the projection matrix glLoadIdentity(); gluOrtho2D(0.0,texSize,0.0,texSize); glMatrixMode(GL_MODELVIEW); glLoadIdentity(); glViewport(0,0,texSize,texSize); what operation has done? The main problem is, what is GL_MODELVIEW? Also, after code above executed, where will the result put in? THX

Share this post


Link to post
Share on other sites
From the looks of things, you're getting ahead of yourself.
If you don't know what the model view matrix is I suggest you check this (http://shadowconflict.com/opengl.html) out before you go any further.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this