Camera2D

An orthographic camera

Members

Functions

update
void update()

Updates the state of the camera.

Properties

centerOffset
vec2 centerOffset [@property getter]

Gets the center offset of the camera

matrix
mat4 matrix [@property getter]

Matrix for this camera

Variables

position
vec2 position;

Position of camera

rotation
float rotation;

Rotation of the camera

scale
float scale;

Scale to apply to the camera's viewport.

Inherited Members

From Camera

size
vec2 size;

Size of the camera's viewport.

matrix
mat4 matrix [@property getter]

The view-projection matrix for the camera.

update
void update()

Updates the state of the camera.

Meta