title: opengl es position after glRotatef and glTranslatef
body: <p>i'am new in OpenGL ES. Can you helps me to calculate world coordinates of cube after rotate and translate. For example:<br/>
  first i rotate cube:<br/>
  gl.glRotatef(90, 1, 0, 0);<br/>
  than change his position<br/>
  gl.glTranslatef(10, 0, 0);<br/>
  <br/>
  How can i calculate his "new" world coordinates? I read about glGetFloatv(GL_MODELVIEW_MATRIX , matrix) but not understand it. Maybe someone can provide sample code.<br/><br/>
  <strong>EDIT:</strong>
  <br/>
  I found solution. Android code<br/>
  <code>
  float[] matrix = new float[] {<br/>
  1,0,0,0,<br/>
  0,1,0,0,<br/>
  0,0,1,0,<br/>
  0,0,0,1,<br/>
  };<br/>
  Matrix.rotateM(matrix, 0, rx, 1, 0, 0);<br/>
  Matrix.rotateM(matrix, 0, ry, 0, 1, 0);<br/>
  Matrix.rotateM(matrix, 0, rz, 0, 0, 1);<br/>
  Matrix.translateM(matrix, 0, x, y, z);<br/>
  x = matrix[12];<br/>
  y = matrix[13];<br/>
  z = matrix[14];<br/>
  </code>
  Thanks for answers.</p>