Examples of glGetFloatv()


Examples of javax.media.opengl.GL.glGetFloatv()

    MapTileTreeNode currentNode = mtt.getRootNode();

    /* get the current projection and modelview matrix for visibility checking */
    FloatBuffer projection = FloatBuffer.allocate(16);
    gl.glGetFloatv(GL.GL_PROJECTION_MATRIX, projection);
    FloatBuffer modelview = FloatBuffer.allocate(16);
    gl.glGetFloatv(GL.GL_MODELVIEW_MATRIX, modelview);

    /* get the resulting matrix */
    Matrix pm = new Matrix(projection);
View Full Code Here

Examples of javax.media.opengl.GL.glGetFloatv()

    /* get the current projection and modelview matrix for visibility checking */
    FloatBuffer projection = FloatBuffer.allocate(16);
    gl.glGetFloatv(GL.GL_PROJECTION_MATRIX, projection);
    FloatBuffer modelview = FloatBuffer.allocate(16);
    gl.glGetFloatv(GL.GL_MODELVIEW_MATRIX, modelview);

    /* get the resulting matrix */
    Matrix pm = new Matrix(projection);
    Matrix projmodelmatrix = pm.multiply(new Matrix(modelview));

View Full Code Here

Examples of javax.media.opengl.GL2.glGetFloatv()

            gl.glGetIntegerv(GL2.GL_VIEWPORT, viewport);//Update viewport buffer

            gl.glMatrixMode(GL2.GL_PROJECTION);
            gl.glLoadIdentity();
            glu.gluPerspective(viewField, aspectRatio, nearDistance, farDistance);
            gl.glGetFloatv(GL2.GL_PROJECTION_MATRIX, projMatrix);//Update projection buffer


            gl.glMatrixMode(GL2.GL_MODELVIEW);
            gl.glLoadIdentity();
View Full Code Here

Examples of javax.media.opengl.GL2ES1.glGetFloatv()

    }

    @Override
    public FloatBuffer getMatrix(final int matrixType, final FloatBuffer store) {
        final GL2ES1 gl = GLContext.getCurrentGL().getGL2ES1();
        gl.glGetFloatv(matrixType, store);
        return store;
    }

    @Override
    public void loadIdentity() {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.