Module CL_GraphicContext

module CL_GraphicContext: sig .. end

API documentation for the class CL_GraphicContext

type t = CL_Type.graphic_context 
val init : unit -> t
val clear : t -> CL_Colorf.t -> unit
val get_width : t -> int
val get_height : t -> int
val get_size : t -> CL_Size.t
val get_cliprect : t -> CL_Rect.t
val get_max_texture_size : t -> CL_Size.t
val reset_frame_buffer : t -> unit
val reset_program_object : t -> unit
val reset_blend_mode : t -> unit
val reset_buffer_control : t -> unit
val reset_pen : t -> unit
val reset_polygon_rasterizer : t -> unit
val push_cliprect : t -> unit
val pop_cliprect : t -> unit
val reset_cliprect : t -> unit
val push_modelview : t -> unit
val pop_modelview : t -> unit
val flush_batcher : t -> unit
val set_scale2D : t -> x:float -> y:float -> unit
val set_scale3D : t -> x:float -> y:float -> z:float -> unit
val mult_scale2D : t -> x:float -> y:float -> unit
val mult_scale3D : t -> x:float -> y:float -> z:float -> unit
val push_scale2D : t -> x:float -> y:float -> unit
val push_scale3D : t -> x:float -> y:float -> z:float -> unit
val set_translate2D : t -> x:float -> y:float -> unit
val set_translate3D : t -> x:float -> y:float -> z:float -> unit
val mult_translate2D : t -> x:float -> y:float -> unit
val mult_translate3D : t -> x:float -> y:float -> z:float -> unit
val push_translate2D : t -> x:float -> y:float -> unit
val push_translate3D : t -> x:float -> y:float -> z:float -> unit
type primitives_type = 
| Points
| Line_strip
| Line_loop
| Lines
| Triangle_strip
| Triangle_fan
| Triangles
type standard_program = 
| Program_color_only
| Program_single_texture
| Program_sprite
type map_mode = 
| Map_2d_upper_left
| Map_2d_lower_left
| User_projection
val set_primitives_array : t -> CL_Type.primitives_array -> unit