Examples of glScaled()


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

                    gl.glRotated(heading, 0, 0, 1);
                gl.glTranslated(-xscale / 2, -yscale / 2, 0);
            }

            // Scale the unit quad
            gl.glScaled(xscale, yscale, 1);

            if (this.activeTexture.bind(dc))
                dc.drawUnitQuad(activeTexture.getTexCoords());

            gl.glDepthRange(0, 1); // reset depth range to the OGL default
View Full Code Here

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

        Double labelScale = this.getActiveAttributes().getLabelScale();
        if (labelScale != null)
        {
            gl.glTranslatef(x, y, 0); // Assumes matrix mode is MODELVIEW
            gl.glScaled(labelScale, labelScale, 1);
            gl.glTranslatef(-x, -y, 0);
        }

        // Do not depth buffer the label. (Placemarks beyond the horizon are culled above.)
        gl.glDisable(GL.GL_DEPTH_TEST);
View Full Code Here

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

        // Scale background image coordinates to fit the Annotation's dimensions.
        java.awt.Dimension size = this.getImageSize(dc);
        if (size != null)
        {
            gl.glScaled(size.getWidth() / (double) width, size.getHeight() / (double) height, 1d);
        }

        super.transformBackgroundImageCoordsToAnnotationCoords(dc, width, height, texture);
    }
View Full Code Here

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

        this.setupPerpective(this.xSize, this.ySize, drawable, ortho);

        final GL2 gl = drawable.getGL().getGL2();
       
        // Scale the model so that it will fit on the window.
        gl.glScaled(this.scaleFactor, this.scaleFactor, this.scaleFactor);
       
        // Rotate prior to translating so that rotation happens from middle of
        // object.
        if (ortho) {
            // Manual rotation
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.