Examples of glScissor()


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

        if (strict) {
            // grab our camera to get width and height info.
            final Camera cam = Camera.getCurrentCamera();

            gl.glEnable(GL.GL_SCISSOR_TEST);
            gl.glScissor(0, 0, cam.getWidth(), cam.getHeight());
            record.setClippingTestEnabled(true);
        }

        gl.glClear(clear);
View Full Code Here

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

            if (init.getWidth() == -1) {
                setClippingEnabled(rendRecord, false);
            } else {
                setClippingEnabled(rendRecord, true);
                gl.glScissor(init.getX(), init.getY(), init.getWidth(), init.getHeight());
            }
            Rectangle2.releaseTempInstance(init);
        } else {
            // no clips, so disable
            setClippingEnabled(rendRecord, false);
View Full Code Here

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

      int scissorHeight = (int)(lowerRightProjected.y - scissorStartY + 1);
     
      //Convert scissor start y to be upper left screen origin (0,0) relative
      scissorStartY = MT4jSettings.getInstance().getWindowHeight() - scissorStartY - scissorHeight;
     
      gl.glScissor(scissorStartX, scissorStartY, scissorWidth, scissorHeight);
     
      pgl.endGL();
    }
   
    //Draw component
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.