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

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

Introduction

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

Prototype

public void glViewport(int x, int y, int width, int height);

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);/*from w  w w .j  av a 2 s .  c o  m*/

        /*
         */

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

    }
}