List of usage examples for com.badlogic.gdx.graphics GL20 GL_VIEWPORT
int GL_VIEWPORT
To view the source code for com.badlogic.gdx.graphics GL20 GL_VIEWPORT.
Click Source Link
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); }