package sfml

  1. Overview
  2. Docs
type t
val create : unit -> t
val createFromRect : rect:float SFRect.t -> t
val copy : view:t -> unit
val setCenter : view:t -> center:(float * float) -> unit
val setCenter2 : view:t -> x:float -> y:float -> unit
val move : view:t -> offset:(float * float) -> unit
val move2 : view:t -> offsetX:float -> offsetY:float -> unit
val zoom : view:t -> factor:float -> unit
val getCenter : view:t -> float * float
val getSize : view:t -> float * float
OCaml

Innovation. Community. Security.