package sfml

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

Install

Dune Dependency

Authors

Maintainers

Sources

v0.09.tar.gz
sha256=75e28f425d6c40f39f7aac53b413da3d48ecd50aa88cdf644d38a14897a59a30
md5=01ffc5b471d774f2d6234c639b067f04

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.