package raylib

  1. Overview
  2. Docs

Module Raylib.Camera2DSource

Sourcetype t'
Sourcetype t = t' ctyp
Sourceval t : t Ctypes.typ
Sourceval create : Vector2.t -> Vector2.t -> float -> float -> t

create offset target rotation zoom

Sourceval offset : t -> Vector2.t

Camera offset (displacement from target)

Sourceval target : t -> Vector2.t

Camera target (rotation and zoom origin)

Sourceval rotation : t -> float

Camera rotation in degrees

Sourceval zoom : t -> float

Camera zoom (scaling), should be 1.0f by default

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

Innovation. Community. Security.