PDA

View Full Version : Viewing current matrix



giedi
12-17-2001, 05:04 AM
I would like to be able to access the individual components of the current matrix.
Is there anyway to load the current matrix into a buffer.. function? global array I'm missing? Any help would really be appreciated.

Thanks.

robsterooni
12-17-2001, 05:14 AM
float matrix[16];
glGetFloatv(GL_MODELVIEW_MATRIX, matrix);

giedi
12-17-2001, 05:21 AM
i'm an idiot for not looking at the state variables list before asking.. thanks alot.

robsterooni
12-17-2001, 07:09 AM
don't beat yourself up. http://www.opengl.org/discussion_boards/ubb/wink.gif

happy glGetFloatv-ing,

robsterooni