Example usage for Java com.badlogic.gdx.utils.viewport Viewport fields, constructors, methods, implement or subclass
The text is from its open source code.
int | getBottomGutterHeight() Returns the bottom gutter (black bar) height in screen coordinates. |
Camera | getCamera() |
int | getLeftGutterWidth() Returns the left gutter (black bar) width in screen coordinates. |
int | getScreenHeight() |
int | getScreenWidth() |
int | getScreenX() |
int | getScreenY() |
float | getWorldHeight() |
float | getWorldWidth() |
void | setWorldSize(float worldWidth, float worldHeight) |
Vector2 | unproject(Vector2 screenCoords) Transforms the specified screen coordinate to world coordinates. |
Vector3 | unproject(Vector3 screenCoords) Transforms the specified screen coordinate to world coordinates. |
void | update(int screenWidth, int screenHeight) Calls #update(int,int,boolean) with false. |