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
type
image_src = [ `FromColor of int * int * SFColor.t
| `FromFile of string
| `FromMemory of string
| `FromPixels of int * int * string
| `FromPixelsArray of (int * int * int * int) array array
| `FromSFImage of SFImage.t ]
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 =
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:SFRenderWindow.window_style list -> ?bpp:int -> ?depth:int -> ?stencil:int -> ?antialiasing:int -> int * int -> string ->
object
.. end