changed.
| Modifier and Type | Field and Description |
|---|---|
| private float |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public float | |
| public void | |
| public void | update(int screenWidth, int screenHeight, boolean centerCamera)
Overrides com. Configures this viewport's screen bounds using the specified screen size and calls |
| unitsPerPixel | back to summary |
|---|---|
| private float unitsPerPixel | |
| ScreenViewport | back to summary |
|---|---|
| public ScreenViewport() Creates a new viewport using a new | |
| ScreenViewport | back to summary |
|---|---|
| public ScreenViewport(Camera camera) | |
| getUnitsPerPixel | back to summary |
|---|---|
| public float getUnitsPerPixel() | |
| setUnitsPerPixel | back to summary |
|---|---|
| public void setUnitsPerPixel(float unitsPerPixel) Sets the number of pixels for each world unit. Eg, a scale of 2.5 means there are 2.5 world units for every 1 screen pixel. Default is 1. | |
| update | back to summary |
|---|---|
| public void update(int screenWidth, int screenHeight, boolean centerCamera) Overrides com. Doc from com. Configures this viewport's screen bounds using the specified screen size and calls
The default implementation only calls | |