Package javax.media.opengl

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


    /* 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

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.