package sfml

  1. Overview
  2. Docs
class int_rect : ((int * int) * (int * int)) -> object ... end
class float_rect : ((float * float) * (float * float)) -> object ... end
type image_src = [
  1. | `FromColor of int * int * SFColor.t
  2. | `FromFile of string
  3. | `FromMemory of bytes
  4. | `FromPixels of int * int * bytes
  5. | `FromPixelsArray of (int * int * int * int) array array
  6. | `FromSFImage of SFImage.t
]
type flip_direction = [
  1. | `horizontally
  2. | `vertically
]
class image : image_src -> object ... end
type texture_src = [
  1. | `FromDims of int * int
  2. | `FromFile of string
  3. | `FromImage of image
  4. | `FromMemory of string
]
val get_texture_max_size : unit -> int
class texture : texture_src -> ?area:int SFRect.t -> unit -> object ... end
class render_states : ?blend_mode:SFBlendMode.t -> ?transform:SFTransform.t -> ?texture: SFTexture.t -> ?shader:SFShader.t -> unit -> object ... end
type draw_type =
  1. | Sprite of SFSprite.t
  2. | Text of SFText.t
  3. | Shape of SFShape.t
  4. | Circle of SFCircleShape.t
class virtual drawable : object ... end
class sprite : object ... end
class shape : (float * float) array -> object ... end
class circle_shape : ?radius:float -> ?pointCount:int -> unit -> object ... end
type font_src = [
  1. | `FromFile of string
  2. | `FromMemory of string
]
class font : font_src -> object ... end
class text : ?font:font -> ?color:SFColor.t -> ?charSize:int -> ?pos:(float * float) -> ?rotation: float -> ?scale:(float * float) -> ?origin:(float * float) -> string -> object ... end
class view : ?rect:float SFRect.t -> unit -> object ... end
class render_window : ?style:SFStyle.t list -> ?bpp:int -> ?settings:SFContextSettings.t -> ( int * int) -> string -> object ... end
OCaml

Innovation. Community. Security.