Property | Type | Description | |
---|---|---|---|
Position | Vector2 | ||
Transform | Matrix |
Property | Type | Description | |
---|---|---|---|
rotation | float | ||
zoom | float |
Method | Description | |
---|---|---|
Camera ( int w, int h ) : System |
The constructor that reads in the initial camera frame size and initializes the other information.
|
|
Move ( Vector2 offset ) : void |
An additional way to move the camera.
|
|
getTransformation ( ) : Matrix |
The method to get the matrix that is the transformed screen based on zooms, shifts, rotations, and the like.
|
public Camera ( int w, int h ) : System | ||
w | int | Screen width. |
h | int | Screen height. |
return | System |
public Move ( Vector2 offset ) : void | ||
offset | Vector2 | The offest for the camera |
return | void |