PDA

View Full Version : glGetDoublev problem



SiraRaven
08-04-2010, 04:52 PM
I'm trying to get the current modelview matrix, so I have

GLdouble objectMatrix[16];

//a bunch of translations/rotations
glGetDoublev(GL_MODELVIEW, objectMatrix);

however, even though I went through a fair number of transformations, objectMatrix is full of only 0s. I'm stumped as to why it's doing this. Any ideas?

Dark Photon
08-04-2010, 06:03 PM
glGetDoublev(GL_MODELVIEW, objectMatrix);
Wrong symbol. Try:


glGetDoublev ( GL_MODELVIEW_MATRIX , modelview );

SiraRaven
08-04-2010, 10:50 PM
Oh! Yeah, that's it - thank you very much!