List of usage examples for com.badlogic.gdx.graphics GLCommon glDepthFunc
public void glDepthFunc(int func);
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)); } }