Jump to content
  • Advertisement


This topic is now archived and is closed to further replies.


glGetFloatv(GL_MODELVIEW_MATRIX, mat); ??

This topic is 5968 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

hello all, im trying to figure out the section of code below. the section that confuses me is glGetFloatv(GL_MODELVIEW_MATRIX, mat); what is the GL_MODELVIEW_MATRIX? ive searched google for the keyword, but it just returns example programs with the keyword in (with no comments or explanation). I need a definition or an explanation to help understand it. Could someone tell me what is does, or where a resource exists that provides a description of these things. Thanks in advance! matrix mat, tmat; vector x, y; glGetFloatv(GL_MODELVIEW_MATRIX, mat); mat.Transpose(tmat); x.Set(tmat[0], tmat[1], tmat[2]); y.Set(tmat[4], tmat[5], tmat[6]);

Share this post

Link to post
Share on other sites
glGetFloatv(GL_MODELVIEW_MATRIX, mat);

would retrieve the values of the current modelview matrix and store it in "mat" matrix.

for more information.

MSDN (glGetFloatv)

To the vast majority of mankind, nothing is more agreeable than to escape the need for mental exertion... To most people, nothing is more troublesome than the effort of thinking.

Share this post

Link to post
Share on other sites

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!