Package com.badlogic.gdx.graphics

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


      mesh.bind();
    } else {
      combinedMatrix.set(projectionMatrix).mul(transformMatrix);

      GL20 gl = Gdx.gl20;
      gl.glDepthMask(false);

      if (customShader != null) {
        customShader.begin();
        customShader.setUniformMatrix("u_proj", projectionMatrix);
        customShader.setUniformMatrix("u_trans", transformMatrix);
View Full Code Here


      gl.glDisable(GL10.GL_TEXTURE_2D);
      mesh.unbind();
    } else {
      shader.end();
      GL20 gl = Gdx.gl20;
      gl.glDepthMask(true);
      if(customShader != null) mesh.unbind(customShader);
      else mesh.unbind(shader);
    }
  }
View Full Code Here

    if (!drawing) throw new IllegalStateException("begin must be called before end.");
    drawing = false;

    shader.end();
    GL20 gl = Gdx.gl20;
    gl.glDepthMask(true);
    if (customShader != null)
      mesh.unbind(customShader);
    else
      mesh.unbind(shader);
  }
View Full Code Here

    if (vertexIndex > 0) flush();
    lastTexture = null;
    drawing = false;

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

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

    if (idx > 0) flush();
    lastTexture = null;
    drawing = false;

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

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

    if (!drawing) throw new IllegalStateException("begin must be called before end.");
    drawing = false;

    shader.end();
    GL20 gl = Gdx.gl20;
    gl.glDepthMask(true);
    if (customShader != null)
      mesh.unbind(customShader);
    else
      mesh.unbind(shader);
  }
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.