Modifier and Type | Method and Description |
---|---|
Vector2f |
getCenter()
Gets center position of the camera.
|
float |
getZoom()
Gets zoom value.
|
void |
setCenter(float x,
float y)
Sets center position of the camera.
|
void |
setCenter(Vector2f center)
Sets center position of the camera.
|
void |
setZoom(float zoom)
Sets zoom value.
|
getCameraType, setScreenSize
Vector2f getCenter()
void setCenter(Vector2f center)
center
- Center position of the camera.void setCenter(float x, float y)
x
- X component of the center vector.y
- Y component of the center vector.float getZoom()
void setZoom(float zoom)
zoom
- Zoom value.