Example usage for com.badlogic.gdx.graphics GL20 GL_VIEWPORT

List of usage examples for com.badlogic.gdx.graphics GL20 GL_VIEWPORT

Introduction

In this page you can find the example usage for com.badlogic.gdx.graphics GL20 GL_VIEWPORT.

Prototype

int GL_VIEWPORT

To view the source code for com.badlogic.gdx.graphics GL20 GL_VIEWPORT.

Click Source Link

Usage

From source file:com.bladecoder.engine.model.Sprite3DRenderer.java

License:Apache License

private static void updateViewport() {
    // GET CURRENT VIEWPORT SIZE
    Gdx.gl20.glGetIntegerv(GL20.GL_VIEWPORT, VIEWPORT_RESULTS);
    VIEWPORT.x = VIEWPORT_RESULTS.get(0);
    VIEWPORT.y = VIEWPORT_RESULTS.get(1);
    VIEWPORT.width = VIEWPORT_RESULTS.get(2);
    VIEWPORT.height = VIEWPORT_RESULTS.get(3);
}