getting and setting gl_modelview
hi,
can i set GL_MODELVIEW matrix from an array, and also get it into an array?
how?
best wishes
Use glLoadMatrix and glMultMatrix to load and multiply a user matrix form an array. To get the matrix, use glGetFloatv or glGetDoublev with GL_MODELVIEW_MATRIX.
Set the current stack to the model view stack, then use glLoadMatrix or glLoadMatrixf to set the model view matrix. Use glGetDoublev or glGetFloatv with GL_MODELVIEW_MATRIX as the enum value to obtain the matrix.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement