package raylib

  1. Overview
  2. Docs
OCaml bindings for raylib

Install

dune-project
 Dependency

Authors

Maintainers

Sources

raylib-2.1.0.tbz
sha256=120e8c3fa92b65964822b2869c7c832bababde4bb0b174e51326f6b8464042c8
sha512=3f4342c551ffa3fd78d660eec80aa9e51c8f1990a2bf496844ba09195c4521e961ebe9d3175054045cad30ede82a4bd5b1b2dd33a564f6dd12e7dfac168b66d8

doc/raylib.core/Raylib_core/Camera2D/index.html

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