code_junkie

How do I get the current size of a matrix stack in OpenGL?

Nov 11th, 2011
137
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.16 KB | None | 0 0
  1. GLint depth;
  2. glGetIntergerv (GL_MODELVIEW_STACK_DEPTH, &depth);
  3.  
  4. GL_MODELVIEW_STACK_DEPTH
  5. GL_PROJECTION_STACK_DEPTH
  6. GL_TEXTURE_STACK_DEPTH
Add Comment
Please, Sign In to add comment