Examples of glDepthMask()


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

    lastTexture = null;
    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)
View Full Code Here

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

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

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

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

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

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

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

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

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

    lastTexture = null;
    idx = 0;
    drawing = false;

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

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

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

      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,
          GL.GL_ONE_MINUS_SRC_ALPHA);
      // draw markers
View Full Code Here

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

        gl.glDrawPixels(marker.getIcon().getWidth(), marker.getIcon().getHeight(), GL.GL_RGBA, GL.GL_UNSIGNED_BYTE, marker.getIconBuffer());
//        gl.glBitmap(0, 0, 0, 0, icon.getWidth()/2, 0, null); // move raster position
//        glut.glutBitmapString(GLUT.BITMAP_HELVETICA_10, "TestTestTest");
      }

      gl.glDepthMask(true);
    }
  }

  public GLMain3D getGlmain3d() {
    return glmain3d;
View Full Code Here

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

    void setDepthBufferWriteEnable(Context ctx, boolean mode) {
        if (VERBOSE) System.err.println("JoglPipeline.setDepthBufferWriteEnable()");

        GL gl = context(ctx).getGL();
        if (mode) {
            gl.glDepthMask(true);
        } else {
            gl.glDepthMask(false);
        }
    }
View Full Code Here

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

        GL gl = context(ctx).getGL();
        if (mode) {
            gl.glDepthMask(true);
        } else {
            gl.glDepthMask(false);
        }
    }

    //----------------------------------------------------------------------
    // Helper private functions for Canvas3D
View Full Code Here

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

    private static void enableWrite(final boolean enable, final ZBufferStateRecord record) {
        final GL gl = GLU.getCurrentGL();

        if (enable != record.writable || !record.isValid()) {
            gl.glDepthMask(enable);
            record.writable = enable;
        }
    }
}
View Full Code Here

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

//      /*
      gl.glClearStencil(0);
      gl.glColorMask(false,false,false,false);
      gl.glDisable(GL.GL_BLEND);
     
      gl.glDepthMask(false);//remove..?
     
      //FIXME do this for non-zero rule?
//      gl.glColorMask(true,true,true,true);
//      gl.glEnable (GL.GL_BLEND);
//      gl.glDepthMask(true);//remove..?
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.