package sfml

  1. Overview
  2. Docs

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.