Examples of glPolygonOffset()


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

    private static void setOffset(final float factor, final float units, final OffsetStateRecord record) {
        final GL gl = GLContext.getCurrentGL();

        if (!record.isValid() || record.factor != factor || record.units != units) {
            gl.glPolygonOffset(factor, units);
            record.factor = factor;
            record.units = units;
        }
    }
View Full Code Here

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

        gl.glLightModeli(GL2.GL_LIGHT_MODEL_TWO_SIDE, GL.GL_FALSE);

        gl.glPolygonMode(GL.GL_FRONT_AND_BACK, GL2.GL_FILL);

        gl.glPolygonOffset(0.0f, 0.0f);
        gl.glDisable(GL2.GL_POLYGON_OFFSET_POINT);
        gl.glDisable(GL2.GL_POLYGON_OFFSET_LINE);
        gl.glDisable(GL.GL_POLYGON_OFFSET_FILL);
    }
View Full Code Here

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

            gl.glPolygonMode(GL.GL_FRONT_AND_BACK, GL2.GL_LINE);
        } else {
            gl.glPolygonMode(GL.GL_FRONT_AND_BACK, GL2.GL_FILL);
        }

        gl.glPolygonOffset(polygonOffsetFactor, polygonOffset);

        if ((polygonOffsetFactor != 0.0) || (polygonOffset != 0.0)) {
            switch (polygonMode) {
                case PolygonAttributes.POLYGON_POINT:
                    gl.glEnable(GL2.GL_POLYGON_OFFSET_POINT);
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.