Package javax.media.opengl

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


        if (gl.isGL2GL3()) {
            gl.getGL2GL3().glPointSize(pointSize);
        }
        if (antialiased) {
            if (gl.isGL2ES1()) {
                gl.glEnable(GL2ES1.GL_POINT_SMOOTH);
                gl.glHint(GL2ES1.GL_POINT_SMOOTH_HINT, GL.GL_NICEST);
            }
        }

        if (isSprite && context.getCapabilities().isPointSpritesSupported()) {
View Full Code Here


            }
        }

        if (isSprite && context.getCapabilities().isPointSpritesSupported()) {
            if (gl.isGL2ES1()) {
                gl.glEnable(GL2ES1.GL_POINT_SPRITE);
                gl.getGL2ES1().glTexEnvi(GL2ES1.GL_POINT_SPRITE, GL2ES1.GL_COORD_REPLACE, GL.GL_TRUE);
            }
        }

        if (useDistanceAttenuation && context.getCapabilities().isPointParametersSupported()) {
View Full Code Here

            _renderer = createRenderer();

            if (settings.getSamples() != 0 && caps.isMultisampleSupported()) {
                final GL gl = GLContext.getCurrentGL();
                gl.glEnable(GL.GL_MULTISAMPLE);
            }

            _renderer.setBackgroundColor(ColorRGBA.BLACK);

            if (_camera == null) {
View Full Code Here

        if (!unitRecord.isValid()) {
            checkAndSetUnit(unit, record, caps);

            if (genS) {
                gl.glEnable(GL2.GL_TEXTURE_GEN_S);
            } else {
                gl.glDisable(GL2.GL_TEXTURE_GEN_S);
            }
            if (genT) {
                gl.glEnable(GL2.GL_TEXTURE_GEN_T);
View Full Code Here

                gl.glEnable(GL2.GL_TEXTURE_GEN_S);
            } else {
                gl.glDisable(GL2.GL_TEXTURE_GEN_S);
            }
            if (genT) {
                gl.glEnable(GL2.GL_TEXTURE_GEN_T);
            } else {
                gl.glDisable(GL2.GL_TEXTURE_GEN_T);
            }
            if (genR) {
                gl.glEnable(GL2.GL_TEXTURE_GEN_R);
View Full Code Here

                gl.glEnable(GL2.GL_TEXTURE_GEN_T);
            } else {
                gl.glDisable(GL2.GL_TEXTURE_GEN_T);
            }
            if (genR) {
                gl.glEnable(GL2.GL_TEXTURE_GEN_R);
            } else {
                gl.glDisable(GL2.GL_TEXTURE_GEN_R);
            }
            if (genQ) {
                gl.glEnable(GL2.GL_TEXTURE_GEN_Q);
View Full Code Here

                gl.glEnable(GL2.GL_TEXTURE_GEN_R);
            } else {
                gl.glDisable(GL2.GL_TEXTURE_GEN_R);
            }
            if (genQ) {
                gl.glEnable(GL2.GL_TEXTURE_GEN_Q);
            } else {
                gl.glDisable(GL2.GL_TEXTURE_GEN_Q);
            }
        } else {
            if (genS != unitRecord.textureGenS) {
View Full Code Here

            }
        } else {
            if (genS != unitRecord.textureGenS) {
                checkAndSetUnit(unit, record, caps);
                if (genS) {
                    gl.glEnable(GL2.GL_TEXTURE_GEN_S);
                } else {
                    gl.glDisable(GL2.GL_TEXTURE_GEN_S);
                }
            }
            if (genT != unitRecord.textureGenT) {
View Full Code Here

                }
            }
            if (genT != unitRecord.textureGenT) {
                checkAndSetUnit(unit, record, caps);
                if (genT) {
                    gl.glEnable(GL2.GL_TEXTURE_GEN_T);
                } else {
                    gl.glDisable(GL2.GL_TEXTURE_GEN_T);
                }
            }
            if (genR != unitRecord.textureGenR) {
View Full Code Here

                }
            }
            if (genR != unitRecord.textureGenR) {
                checkAndSetUnit(unit, record, caps);
                if (genR) {
                    gl.glEnable(GL2.GL_TEXTURE_GEN_R);
                } else {
                    gl.glDisable(GL2.GL_TEXTURE_GEN_R);
                }
            }
            if (genQ != unitRecord.textureGenQ) {
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.