Example usage for com.badlogic.gdx.graphics GLCommon glDepthFunc

List of usage examples for com.badlogic.gdx.graphics GLCommon glDepthFunc

Introduction

In this page you can find the example usage for com.badlogic.gdx.graphics GLCommon glDepthFunc.

Prototype

public void glDepthFunc(int func);

Source Link

Usage

From source file:airfoil.Main.java

License:Open Source License

@Override
public void render() {
    if (this.alive) {
        GLCommon gl = Gdx.gl;
        gl.glViewport(0, 0, this.width, this.height);
        gl.glClearColor(ColorClear.r, ColorClear.g, ColorClear.b, ColorClear.a);
        gl.glClear(GL20.GL_COLOR_BUFFER_BIT | GL10.GL_DEPTH_BUFFER_BIT);
        gl.glEnable(GL20.GL_DEPTH_TEST);
        gl.glDepthFunc(GL20.GL_LESS);

        /*/*  w ww  . j  av  a  2s.c o  m*/
         */

        this.renderMeshLines(this.database.getMesh(this.geometry));

    }
}