Camera
Interface for controlling the camera.
Camera is a single-reference type. This means you can access this class directly:
Camera.Zoom(...);
Members
Vector2 pan (Property)
Pan/position of the camera (x, y)
float rotation (Property)
Rotation of the camera in radians.
float zoom (Property)
Zoom factor of the camera.
Methods
void Pan(const Vector2 &in position)
void Pan(const Vector2 &in position, float timeInSeconds)
void Pan(const Vector2 &in position, float timeInSeconds, bool smooth)
Moves the camera's position.
void Zoom(float factor)
void Zoom(float factor, float timeInSeconds)
void Zoom(float factor, float timeInSeconds, bool smooth)
Zooms the camera.
void Rotate(float angle)
void Rotate(float angle, float timeInSeconds)
void Rotate(float angle, float timeInSeconds, bool smooth)
Rotates the camera.
void Transform(const Vector2 &in position, float factor, float angle)
void Transform(const Vector2 &in position, float factor, float angle,
float timeInSeconds)
void Transform(const Vector2 &in position, float factor, float angle,
float timeInSeconds, bool smooth)
Transforms (pan, rotate, zoom) the camera.
void Reset()
void Reset(float timeInSeconds)
void Reset(float timeInSeconds, bool smooth)
Resets the camera to its default transform.