Package javax.media.opengl

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

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.