Module Raylib.Camera3D

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

create position target up fovy projection

val position : t -> Vector3.t

Camera position

val target : t -> Vector3.t

Camera target it looks-at

val up : t -> Vector3.t

Camera up vector (rotation over its axis)

val fovy : t -> float

Camera field-of-view apperture in Y (degrees) in perspective, used as near plane width in orthographic

val projection : t -> CameraProjection.t

Camera projection: CAMERA_PERSPECTIVE or CAMERA_ORTHOGRAPHIC

val set_position : t -> Vector3.t -> unit
val set_target : t -> Vector3.t -> unit
val set_up : t -> Vector3.t -> unit
val set_fovy : t -> float -> unit
val set_projection : t -> CameraProjection.t -> unit