package sfml

  1. Overview
  2. Docs
Bindings to the SFML multimedia library

Install

Dune Dependency

Authors

Maintainers

Sources

ocaml-sfml-0.09.2.tar.gz
sha256=ce1e50dec69a4495232261627a359a8fb54d79788147380bee78b0983f8b6951
md5=9ae99bb47bb68d5181d01b7bbc78a351

doc/sfml.graphics/SFTransform/index.html

Module SFTransform

Online documentation for the Transform class

type t
type matrix = {
  1. a00 : float;
  2. a01 : float;
  3. a02 : float;
  4. a10 : float;
  5. a11 : float;
  6. a12 : float;
  7. a20 : float;
  8. a21 : float;
  9. a22 : float;
}
val fromMatrix : matrix:matrix -> t
val getIdentity : unit -> t
val getMatrix : transform:t -> float array
val getInverse : transform:t -> t
val combine : transform:t -> other:t -> unit
val translate : transform:t -> (float * float) -> unit
val translate2 : transform:t -> x:float -> y:float -> unit
val rotate : transform:t -> angle:float -> unit
val rotateWithCenter : transform:t -> angle:float -> center:(float * float) -> unit
val rotateWithCenter2 : transform:t -> angle:float -> centerX:float -> centerY:float -> unit
val scale : transform:t -> scaleX:float -> scaleY:float -> unit
OCaml

Innovation. Community. Security.