module Oo_sfml_graphics:sig
..end
Online documentation for the graphics module
class int_rect :(int * int) * (int * int) ->
object
..end
class float_rect :(float * float) * (float * float) ->
object
..end
typeimage_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 ]
typeflip_direction =
[ `horizontally | `vertically ]
class image :image_src ->
object
..end
typetexture_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 |
| |
Text of |
| |
Shape of |
| |
Circle of |
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
typefont_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