Examples of glGetIntegerv()


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

         int[] greenBits   = new int[1];
         int[] blueBits   = new int[1];
         int[] alphaBits   = new int[1];
         int[] stencilBits   = new int[1];
         int[] depthBits   = new int[1];
         gl.glGetIntegerv(GL.GL_RED_BITS, redBits,0);
         gl.glGetIntegerv(GL.GL_GREEN_BITS, greenBits,0);
         gl.glGetIntegerv(GL.GL_BLUE_BITS, blueBits,0);
         gl.glGetIntegerv(GL.GL_ALPHA_BITS, alphaBits,0);
         gl.glGetIntegerv(GL.GL_STENCIL_BITS, stencilBits,0);
         gl.glGetIntegerv(GL.GL_DEPTH_BITS, depthBits,0);
View Full Code Here

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

         int[] blueBits   = new int[1];
         int[] alphaBits   = new int[1];
         int[] stencilBits   = new int[1];
         int[] depthBits   = new int[1];
         gl.glGetIntegerv(GL.GL_RED_BITS, redBits,0);
         gl.glGetIntegerv(GL.GL_GREEN_BITS, greenBits,0);
         gl.glGetIntegerv(GL.GL_BLUE_BITS, blueBits,0);
         gl.glGetIntegerv(GL.GL_ALPHA_BITS, alphaBits,0);
         gl.glGetIntegerv(GL.GL_STENCIL_BITS, stencilBits,0);
         gl.glGetIntegerv(GL.GL_DEPTH_BITS, depthBits,0);
    System.out.println("Red bits: " + redBits[0]);
View Full Code Here

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

         int[] alphaBits   = new int[1];
         int[] stencilBits   = new int[1];
         int[] depthBits   = new int[1];
         gl.glGetIntegerv(GL.GL_RED_BITS, redBits,0);
         gl.glGetIntegerv(GL.GL_GREEN_BITS, greenBits,0);
         gl.glGetIntegerv(GL.GL_BLUE_BITS, blueBits,0);
         gl.glGetIntegerv(GL.GL_ALPHA_BITS, alphaBits,0);
         gl.glGetIntegerv(GL.GL_STENCIL_BITS, stencilBits,0);
         gl.glGetIntegerv(GL.GL_DEPTH_BITS, depthBits,0);
    System.out.println("Red bits: " + redBits[0]);
    System.out.println("Green bits: " + greenBits[0]);
View Full Code Here

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

         int[] stencilBits   = new int[1];
         int[] depthBits   = new int[1];
         gl.glGetIntegerv(GL.GL_RED_BITS, redBits,0);
         gl.glGetIntegerv(GL.GL_GREEN_BITS, greenBits,0);
         gl.glGetIntegerv(GL.GL_BLUE_BITS, blueBits,0);
         gl.glGetIntegerv(GL.GL_ALPHA_BITS, alphaBits,0);
         gl.glGetIntegerv(GL.GL_STENCIL_BITS, stencilBits,0);
         gl.glGetIntegerv(GL.GL_DEPTH_BITS, depthBits,0);
    System.out.println("Red bits: " + redBits[0]);
    System.out.println("Green bits: " + greenBits[0]);
    System.out.println("Blue bits: " + blueBits[0]);
View Full Code Here

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

         int[] depthBits   = new int[1];
         gl.glGetIntegerv(GL.GL_RED_BITS, redBits,0);
         gl.glGetIntegerv(GL.GL_GREEN_BITS, greenBits,0);
         gl.glGetIntegerv(GL.GL_BLUE_BITS, blueBits,0);
         gl.glGetIntegerv(GL.GL_ALPHA_BITS, alphaBits,0);
         gl.glGetIntegerv(GL.GL_STENCIL_BITS, stencilBits,0);
         gl.glGetIntegerv(GL.GL_DEPTH_BITS, depthBits,0);
    System.out.println("Red bits: " + redBits[0]);
    System.out.println("Green bits: " + greenBits[0]);
    System.out.println("Blue bits: " + blueBits[0]);
    System.out.println("Alpha bits: " + blueBits[0]);
View Full Code Here

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

         gl.glGetIntegerv(GL.GL_RED_BITS, redBits,0);
         gl.glGetIntegerv(GL.GL_GREEN_BITS, greenBits,0);
         gl.glGetIntegerv(GL.GL_BLUE_BITS, blueBits,0);
         gl.glGetIntegerv(GL.GL_ALPHA_BITS, alphaBits,0);
         gl.glGetIntegerv(GL.GL_STENCIL_BITS, stencilBits,0);
         gl.glGetIntegerv(GL.GL_DEPTH_BITS, depthBits,0);
    System.out.println("Red bits: " + redBits[0]);
    System.out.println("Green bits: " + greenBits[0]);
    System.out.println("Blue bits: " + blueBits[0]);
    System.out.println("Alpha bits: " + blueBits[0]);
    System.out.println("Depth Buffer bits: " + depthBits[0]);
View Full Code Here

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


        gl.glRasterPos3f(posX, posY, posZ);

        int[] drawBuf = new int[1];
        gl.glGetIntegerv(GL2.GL_DRAW_BUFFER, drawBuf, 0);
        /* disable draw buffer */
        gl.glDrawBuffer(GL.GL_NONE);

        /*
         * raster position is upper left corner, default for Java3D
View Full Code Here

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

            viewportY = ((height - viewportH) / 2);

            GL2 gl = drawable.getGL().getGL2();

            gl.glViewport(viewportX, viewportY, viewportW, viewportH);
            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
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.