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/SFTexture/index.html

Module SFTexture

Online documentation for the Texture class

type t
val create : width:int -> height:int -> t
val createFromFile : filename:string -> ?area:int SFRect.t -> unit -> t
val createFromMemory : data:string -> ?area:int SFRect.t -> unit -> t
val createFromImage : image:SFImage.t -> ?area:int SFRect.t -> unit -> t
val copy : t -> t
val destroy : t -> unit
type coordinateType =
  1. | Normalized
  2. | Pixels
val bind : t -> unit
val generateMipmap : t -> bool
val getSize : t -> int * int
val setSmooth : t -> smooth:bool -> unit
val isSmooth : t -> bool
val setRepeated : t -> repeated:bool -> unit
val isRepeated : t -> bool
val getMaximumSize : unit -> int
type input = [
  1. | `Filename of string
  2. | `Image of SFImage.t
  3. | `Memory of string
]
val create_from : ?area:int SFRect.t -> input -> t
OCaml

Innovation. Community. Security.