Sign in to follow this  
moo_gamer

Getting values of glOrtho

Recommended Posts

Hi! All, Suppose, in my game somewhere I have set values in glOrtho(..,). Now I want to get the values I have set previously. Please I don't want to keep values in some variables to get them later. Help Thanks in advance.

Share this post


Link to post
Share on other sites
Keeping the variables IS the easiest solution, and you better have a really good reason not to do so. But you can always get the resulting matrix back and solve for the values you are interested in. The matrix generated is available in pretty much any documentation you can find.

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