Archived

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

csxpcm

glGetFloatv(GL_MODELVIEW_MATRIX, mat); ??

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