package sfml

  1. Overview
  2. Docs

Online documentation for the View class

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 setSize : view:t -> size:(float * float) -> unit
val setSize2 : view:t -> width:float -> height: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.