Module Raylib_core.Camera2D

type t'
type t = t' ctyp
val t : t Ctypes.typ
val create : Vector2.t -> Vector2.t -> float -> float -> t

create offset target rotation zoom

val offset : t -> Vector2.t

Camera offset (screen space offset from window origin)

val target : t -> Vector2.t

Camera target (world space target point that is mapped to screen space offset)

val rotation : t -> float

Camera rotation in degrees (pivots around target)

val zoom : t -> float

Camera zoom (scaling around target), must not be set to 0, set to 1.0f for no scale

val set_offset : t -> Vector2.t -> unit
val set_target : t -> Vector2.t -> unit
val set_rotation : t -> float -> unit
val set_zoom : t -> float -> unit