Java Code Examples for javax.microedition.khronos.opengles.GL11#glGetFloatv()
The following examples show how to use
javax.microedition.khronos.opengles.GL11#glGetFloatv() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: PLSceneBase.java From PanoramaGL with Apache License 2.0 | 6 votes |
/**matrix methods*/ protected void updateMatrixes(GL10 gl) { if(PLOpenGLSupport.isHigherThanOpenGL1(gl)) { GL11 gl11 = (GL11)gl; gl11.glGetFloatv(GL11.GL_PROJECTION_MATRIX, mProjectionMatrix, 0); gl11.glGetFloatv(GL11.GL_MODELVIEW_MATRIX, mModelMatrix, 0); } else { mMatrixGrabber.getCurrentProjection(gl); mMatrixGrabber.getCurrentModelView(gl); } }
Example 2
Source File: PLSceneBase.java From panoramagl with Apache License 2.0 | 5 votes |
/** * matrix methods */ protected void updateMatrixes(GL10 gl) { if (PLOpenGLSupport.isHigherThanOpenGL1(gl)) { GL11 gl11 = (GL11) gl; gl11.glGetFloatv(GL11.GL_PROJECTION_MATRIX, mProjectionMatrix, 0); gl11.glGetFloatv(GL11.GL_MODELVIEW_MATRIX, mModelMatrix, 0); } else { mMatrixGrabber.getCurrentProjection(gl); mMatrixGrabber.getCurrentModelView(gl); } }