sfml

Bindings to the SFML multimedia library
IN THIS PACKAGE
class int_rect : ((int * int) * (int * int)) -> object ... end
class float_rect : ((float * float) * (float * float)) -> object ... end
type image_src = [
| `FromColor of int * int * SFColor.t
| `FromFile of string
| `FromMemory of bytes
| `FromPixels of int * int * bytes
| `FromPixelsArray of (int * int * int * int) array array
| `FromSFImage of SFImage.t
]
type flip_direction = [
| `horizontally
| `vertically
]
class image : image_src -> object ... end
type texture_src = [
| `FromDims of int * int
| `FromFile of string
| `FromImage of image
| `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 =
| Sprite of SFSprite.t
| Text of SFText.t
| Shape of SFShape.t
| 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 = [
| `FromFile of string
| `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