how can I get the top element of model-view stack in openGL? -


i want save top element, pop it, push new stack, , push saved element stack. suppose glgetfloatv(gl_modelview_matrix, matrix) fills matrix whole model-view stack not top element, right?

glgetfloatv(gl_modelview_matrix, matrix) fills matrix whole model-view stack not top element, right?

you think wrong. gets topmost element , glloadmatrix sets topmost element.


Comments

Popular posts from this blog

php - Why I am getting the Error "Commands out of sync; you can't run this command now" -

linux - Does gcc have any options to add version info in ELF binary file? -

java - Are there any classes that implement javax.persistence.Parameter<T>? -