Creates a new camera object.
Protected
boundsReadonly
modelThe model view matrix of this camera. Do not modify outside of camera code.
Readonly
projectionThe projection matrix of this camera. Do not modify outside of camera code.
If set to true, the position will be snapped to pixels.
Protected
viewportProtected
viewportProtected
xProtected
yProtected
zoomThe current camera bounds or null.
Set camera bounds.
The new bounds or null to remove the current bounds.
Protected
setProtected
update
A fixed camera that is centered on the screen. This can be used to draw UI (like a HUD for example).