Java com.badlogic.gdx.graphics OrthographicCamera fields, constructors, methods, implement or subclass

Example usage for Java com.badlogic.gdx.graphics OrthographicCamera fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for com.badlogic.gdx.graphics OrthographicCamera.

The text is from its open source code.

Subclass

com.badlogic.gdx.graphics.OrthographicCamera has subclasses.
Click this link to see all its subclasses.

Constructor

OrthographicCamera(float viewportWidth, float viewportHeight)
Constructs a new OrthographicCamera, using the given viewport width and height.
OrthographicCamera()

Method

voidsetToOrtho(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.
voidsetToOrtho(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.
voidtranslate(Vector2 vec)
Moves the camera by the given vector.
voidupdate()