This is the kind of problem I know I'll figure out if I get some rest, but right now it's really frustrating me.
I'm trying to use glGet to acquire some state information, but it doesn't seem to be acting as defined. The following is a simplified example of what I'm trying to do:
And the output I get is: "mode: 0 5888"
From the man pages, it looks like glGet is supposed to replace the second parameter with the value of the first parameter. Anyone want to tell me what I'm doing wrong?
I'm trying to use glGet to acquire some state information, but it doesn't seem to be acting as defined. The following is a simplified example of what I'm trying to do:
code:<HR>Code:GLint i = 0; glMatrixMode(GL_MODELVIEW); glGetIntegerv(GL_MATRIX_MODE, &i); cout << "mode: " << i << " " << GL_MODELVIEW << " " << endl;
And the output I get is: "mode: 0 5888"
From the man pages, it looks like glGet is supposed to replace the second parameter with the value of the first parameter. Anyone want to tell me what I'm doing wrong?