package raylib

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Module Raylib_core.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 (screen space offset from window origin)

Sourceval target : t -> Vector2.t

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

Sourceval rotation : t -> float

Camera rotation in degrees (pivots around target)

Sourceval zoom : t -> float

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

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