Example usage for Java com.badlogic.gdx.graphics OrthographicCamera fields, constructors, methods, implement or subclass
The text is from its open source code.
OrthographicCamera(float viewportWidth, float viewportHeight) Constructs a new OrthographicCamera, using the given viewport width and height. | |
OrthographicCamera() |
void | setToOrtho(boolean yDown, float viewportWidth, float viewportHeight) Sets this camera to an orthographic projection, centered at (viewportWidth/2, viewportHeight/2), with the y-axis pointing up or down. |
void | setToOrtho(boolean yDown) Sets this camera to an orthographic projection using a viewport fitting the screen resolution, centered at (Gdx.graphics.getWidth()/2, Gdx.graphics.getHeight()/2), with the y-axis pointing up or down. |
void | translate(Vector2 vec) Moves the camera by the given vector. |
void | update() |