Examples of glDisable()


Examples of com.badlogic.gdx.graphics.GL10.glDisable()

    drawing = false;

    if (Gdx.graphics.isGL20Available() == false) {
      GL10 gl = Gdx.gl10;
      gl.glDepthMask(true);
      gl.glDisable(GL10.GL_TEXTURE_2D);
      mesh.unbind();
    } else {
      shader.end();
      GL20 gl = Gdx.gl20;
      gl.glDepthMask(true);
View Full Code Here

Examples of com.badlogic.gdx.graphics.GL20.glDisable()

    lastTexture = null;
    drawing = false;

    GL20 gl = Gdx.gl;
    gl.glDepthMask(true);
    if (isBlendingEnabled()) gl.glDisable(GL20.GL_BLEND);

    if (customShader != null)
      customShader.end();
    else
      shader.end();
View Full Code Here

Examples of com.badlogic.gdx.graphics.GLCommon.glDisable()

    idx = 0;
    drawing = false;

    GLCommon gl = Gdx.gl;
    gl.glDepthMask(true);
    if (isBlendingEnabled()) gl.glDisable(GL10.GL_BLEND);
    gl.glDisable(GL10.GL_TEXTURE_2D);

    if (Gdx.graphics.isGL20Available()) {
      if (customShader != null)
        customShader.end();
View Full Code Here

Examples of com.badlogic.gdx.graphics.GLCommon.glDisable()

    drawing = false;

    GLCommon gl = Gdx.gl;
    gl.glDepthMask(true);
    if (isBlendingEnabled()) gl.glDisable(GL10.GL_BLEND);
    gl.glDisable(GL10.GL_TEXTURE_2D);

    if (Gdx.graphics.isGL20Available()) {
      if (customShader != null)
        customShader.end();
      else
View Full Code Here

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

      GLUT glut = new GLUT();
     
      gl.glLoadIdentity();
      gl.glColor3f(1,1,1);
      gl.glEnable(GL.GL_COLOR_MATERIAL);
      gl.glDisable(GL.GL_TEXTURE_2D);
      gl.glDisable(GL.GL_DEPTH);

      gl.glDepthMask(false);
     
      gl.glEnable (GL.GL_BLEND);
View Full Code Here

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

     
      gl.glLoadIdentity();
      gl.glColor3f(1,1,1);
      gl.glEnable(GL.GL_COLOR_MATERIAL);
      gl.glDisable(GL.GL_TEXTURE_2D);
      gl.glDisable(GL.GL_DEPTH);

      gl.glDepthMask(false);
     
      gl.glEnable (GL.GL_BLEND);
      gl.glBlendFunc (GL.GL_SRC_ALPHA,
View Full Code Here

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

      }
     
     
      gl.glPolygonMode( GL.GL_FRONT, GL.GL_LINE );
      gl.glLineWidth(1.7f);
      gl.glDisable(GL.GL_LIGHTING);
      gl.glScaled(1.01, 1.01, 1.01);
      i = shape.getFaces();
      while (i.hasNext()) {
        gl.glBegin(GL.GL_POLYGON);
        Vector3[] face = i.next();
View Full Code Here

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

   
   
    gl.glLoadIdentity();

   
    gl.glDisable(GL.GL_LIGHTING);
    // Set camera transform
    glu.gluLookAt(cameraFrom.x, cameraFrom.y, cameraFrom.z,
        cameraTo.x, cameraTo.y, cameraTo.z,
        0, 1, 0);
View Full Code Here

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

        gl.glViewport(0, 0, glDrawable.getWidth(), glDrawable.getHeight());

        // Store enabled state and disable lighting, texture mapping and the depth buffer
        gl.glPushAttrib(GL.GL_ENABLE_BIT);
        gl.glDisable(GL.GL_BLEND);
        gl.glDisable(GL.GL_LIGHTING);
        gl.glDisable(GL.GL_TEXTURE_2D);
        gl.glDisable(GL.GL_DEPTH_TEST);

        // Retrieve the current viewport and switch to orthographic mode
View Full Code Here

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

        gl.glViewport(0, 0, glDrawable.getWidth(), glDrawable.getHeight());

        // Store enabled state and disable lighting, texture mapping and the depth buffer
        gl.glPushAttrib(GL.GL_ENABLE_BIT);
        gl.glDisable(GL.GL_BLEND);
        gl.glDisable(GL.GL_LIGHTING);
        gl.glDisable(GL.GL_TEXTURE_2D);
        gl.glDisable(GL.GL_DEPTH_TEST);

        // Retrieve the current viewport and switch to orthographic mode
        IntBuffer viewPort = BufferUtil.newIntBuffer(4);
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.