Package javax.media.opengl

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


            }
        } else {
            if (enable) {
                gl.glEnable(GL2ES1.GL_FOG);
            } else {
                gl.glDisable(GL2ES1.GL_FOG);
            }
            record.enabled = enable;
        }
    }
View Full Code Here


        if (!record.isValid() || lr.isEnabled() != enable) {
            if (enable) {
                gl.glEnable(GLLightingFunc.GL_LIGHT0 + index);
            } else {
                gl.glDisable(GLLightingFunc.GL_LIGHT0 + index);
            }

            lr.setEnabled(enable);
        }
    }
View Full Code Here

        if (!record.isValid() || record.isEnabled() != enable) {
            if (enable) {
                gl.glEnable(GLLightingFunc.GL_LIGHTING);
            } else {
                gl.glDisable(GLLightingFunc.GL_LIGHTING);
            }
            record.setEnabled(enable);
        }
    }
View Full Code Here

            }

        } else {
            if (!record.isValid() || record.planeEnabled[planeIndex]) {
                if (gl.isGL2ES1()) {
                    gl.glDisable(GL2ES1.GL_CLIP_PLANE0 + planeIndex);
                }
                record.planeEnabled[planeIndex] = false;
            }
        }
    }
View Full Code Here

                            }
                        }
                    }

                } else {
                    gl.glDisable(GL2.GL_VERTEX_PROGRAM_ARB);
                }
            }

            if (!record.isValid()) {
                record.validate();
View Full Code Here

        if (enable && (!record.depthTest || !record.isValid())) {
            gl.glEnable(GL.GL_DEPTH_TEST);
            record.depthTest = true;
        } else if (!enable && (record.depthTest || !record.isValid())) {
            gl.glDisable(GL.GL_DEPTH_TEST);
            record.depthTest = false;
        }
    }

    private static void applyFunction(final int depthFunc, final ZBufferStateRecord record) {
View Full Code Here

        if (enabled && (!rendRecord.isClippingTestValid() || !rendRecord.isClippingTestEnabled())) {
            gl.glEnable(GL.GL_SCISSOR_TEST);
            rendRecord.setClippingTestEnabled(true);
        } else if (!enabled && (!rendRecord.isClippingTestValid() || rendRecord.isClippingTestEnabled())) {
            gl.glDisable(GL.GL_SCISSOR_TEST);
            rendRecord.setClippingTestEnabled(false);
        }
        rendRecord.setClippingTestValid(true);
    }
}
View Full Code Here

        if (record.isValid()) {
            if (enable && !record.enabled) {
                gl.glEnable(GL2ES1.GL_FOG);
                record.enabled = true;
            } else if (!enable && record.enabled) {
                gl.glDisable(GL2ES1.GL_FOG);
                record.enabled = false;
            }
        } else {
            if (enable) {
                gl.glEnable(GL2ES1.GL_FOG);
View Full Code Here

        if (record.isValid()) {
            if (enable && !record.enabled) {
                gl.glEnable(GL.GL_STENCIL_TEST);
            } else if (!enable && record.enabled) {
                gl.glDisable(GL.GL_STENCIL_TEST);
            }
        } else {
            if (enable) {
                gl.glEnable(GL.GL_STENCIL_TEST);
            } else {
View Full Code Here

            }
        } else {
            if (enable) {
                gl.glEnable(GL.GL_STENCIL_TEST);
            } else {
                gl.glDisable(GL.GL_STENCIL_TEST);
            }
        }

        setTwoSidedEnabled(enable ? twoSided : false, record, caps);
        record.enabled = enable;
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.