Problems with glGetFloatv

  2 posts   Feedicon  
Replies: 1 - Last Post: November 26, 2010 20:37
by: KlausCDN
showing 1 - 2 of 2
 
Posted: November 25, 2010 04:38 by KlausCDN
I try to get the actual model view matrix after some transformations like glTranslate, glRotate etc.

My code snippet is:

gl.glGetFloatv(gl.GL_MODELVIEW, matrix, 0);

matrix was declared with:

float matrix[];
matrix = new float [16];

but with:

for(int i=0; i<16; i++) System.out.println(matrix[i]);

I get only sixteen times the value 0.0

What should I have done?
 
Posted: November 26, 2010 20:37 by KlausCDN
Sorry, sorry, sorry, I found my error. After using GL_MODELVIEW_MATRIX instead of GL_MODELVIEW it worked Frown
Replies: 1 - Last Post: November 26, 2010 20:37
by: KlausCDN
  • Mysql
  • Glassfish
  • Jruby
  • Rails
  • Nblogo
Terms of Use; Privacy Policy;
© 2010, Oracle Corporation and/or its affiliates
(revision 20120518.3c65429)
 
 
Close
loading
Please Confirm
Close