Module Graphv_webgl_impl
type t= Js_of_ocaml.WebGL.renderingContext Js_of_ocaml.Js.ttype arg= Js_of_ocaml.WebGL.renderingContext Js_of_ocaml.Js.t
module Buffer : sig ... endmodule Dyn : sig ... endmodule VertexBuffer : sig ... endmodule Path : sig ... endtype enum= inttype blending_factor= Js_of_ocaml.WebGL.blendingFactortype texture_target= Js_of_ocaml.WebGL.texTargettype pixel_format= Js_of_ocaml.WebGL.pixelFormattype pixel_type= Js_of_ocaml.WebGL.pixelTypetype tex_filter= Js_of_ocaml.WebGL.texFiltertype tex_param_filter= Js_of_ocaml.WebGL.texFilter Js_of_ocaml.WebGL.texParamtype tex_param_wrap= Js_of_ocaml.WebGL.wrapMode Js_of_ocaml.WebGL.texParamtype tex_param_filter_param= Js_of_ocaml.WebGL.texFiltertype tex_param_wrap_param= Js_of_ocaml.WebGL.wrapModetype wrap_mode= Js_of_ocaml.WebGL.wrapModetype pixel_store_param= int Js_of_ocaml.WebGL.pixelStoreParamtype enable_cap= Js_of_ocaml.WebGL.enableCaptype depth_function= Js_of_ocaml.WebGL.depthFunctiontype stencil_op= Js_of_ocaml.WebGL.stencilOptype begin_mode= Js_of_ocaml.WebGL.beginModetype cull_face_mode= Js_of_ocaml.WebGL.cullFaceModetype front_face_dir= Js_of_ocaml.WebGL.frontFaceDirtype uniform_type= Js_of_ocaml.WebGL.uniformTypetype buffer_target= Js_of_ocaml.WebGL.bufferTargettype buffer_usage= Js_of_ocaml.WebGL.bufferUsagetype error_code= Js_of_ocaml.WebGL.errorCodetype texture= Js_of_ocaml.WebGL.texture Js_of_ocaml.Js.ttype data_type= Js_of_ocaml.WebGL.dataTypetype buffer= Buffer.Float.ttype 'a uniform_location= 'a Js_of_ocaml.WebGL.uniformLocation Js_of_ocaml.Js.ttype buffer_id= Js_of_ocaml.WebGL.buffer Js_of_ocaml.Js.t
val zero : blending_factorval zero_ : stencil_opval one : blending_factorval src_color : blending_factorval dst_color : blending_factorval one_minus_src_color : blending_factorval one_minus_dst_color : blending_factorval one_minus_src_alpha : blending_factorval one_minus_dst_alpha : blending_factorval src_alpha_saturate : blending_factorval src_alpha : blending_factorval dst_alpha : blending_factorval texture_2d : texture_targetval rgba : pixel_formatval luminance : pixel_formatval unsigned_byte : pixel_typeval nearest_mipmap_nearest : tex_param_filter_paramval linear_mipmap_linear : tex_param_filter_paramval nearest : tex_param_filter_paramval linear : tex_param_filter_paramval texture_min_filter : tex_param_filterval texture_mag_filter : tex_param_filterval clamp_to_edge : tex_param_wrap_paramval texture_wrap_s : tex_param_wrapval texture_wrap_t : tex_param_wrapval repeat : tex_param_wrap_paramval unpack_alignment : pixel_store_paramval stencil_test : enable_capval equal : depth_functionval keep : stencil_opval incr : stencil_opval triangle_strip : begin_modeval triangle_fan : begin_modeval always : depth_functionval notequal : depth_functionval cull_face_enum : enable_capval back : cull_face_modeval ccw : front_face_dirval blend : enable_capval depth_test : enable_capval front : cull_face_modeval incr_wrap : stencil_opval decr_wrap : stencil_opval scissor_test : enable_capval texture0 : enumval float : data_typeval array_buffer : buffer_targetval triangles : begin_modeval stream_draw : buffer_usageval invalid_enum : error_codeval texture_equal : t -> texture option -> texture option -> boolval cull_face : t -> Js_of_ocaml.WebGL.cullFaceMode -> unitval front_face : t -> Js_of_ocaml.WebGL.frontFaceDir -> unitval bind_texture : t -> Js_of_ocaml.WebGL.texTarget -> Js_of_ocaml.WebGL.texture Js_of_ocaml__.Js.t option -> unitval active_texture : t -> Js_of_ocaml.WebGL.textureUnit -> unitval enable : t -> Js_of_ocaml.WebGL.enableCap -> unitval disable : t -> Js_of_ocaml.WebGL.enableCap -> unitval stencil_mask : t -> Js_of_ocaml.WebGL.uint -> unitval stencil_func : t -> Js_of_ocaml.WebGL.depthFunction -> int -> Js_of_ocaml.WebGL.uint -> unitval stencil_op : t -> Js_of_ocaml.WebGL.stencilOp -> Js_of_ocaml.WebGL.stencilOp -> Js_of_ocaml.WebGL.stencilOp -> unitval stencil_op_separate : t -> Js_of_ocaml.WebGL.cullFaceMode -> Js_of_ocaml.WebGL.stencilOp -> Js_of_ocaml.WebGL.stencilOp -> Js_of_ocaml.WebGL.stencilOp -> unitval blend_func_separate : t -> Js_of_ocaml.WebGL.blendingFactor -> Js_of_ocaml.WebGL.blendingFactor -> Js_of_ocaml.WebGL.blendingFactor -> Js_of_ocaml.WebGL.blendingFactor -> unitval pixel_storei : t -> 't43 Js_of_ocaml.WebGL.pixelStoreParam -> 't43 -> unitval enable_vertex_attrib_array : t -> Js_of_ocaml.WebGL.uint -> unitval disable_vertex_attrib_array : t -> Js_of_ocaml.WebGL.uint -> unitval vertex_attrib_pointer : t -> Js_of_ocaml.WebGL.uint -> int -> Js_of_ocaml.WebGL.dataType -> bool -> Js_of_ocaml.WebGL.sizei -> Js_of_ocaml.WebGL.intptr -> unitval tex_parameteri_1 : t -> Js_of_ocaml.WebGL.texTarget -> 't58 Js_of_ocaml.WebGL.texParam -> 't58 -> unitval tex_parameteri_2 : t -> Js_of_ocaml.WebGL.texTarget -> 't62 Js_of_ocaml.WebGL.texParam -> 't62 -> unitval buffer_data : t -> Js_of_ocaml.WebGL.bufferTarget -> buffer -> Js_of_ocaml.WebGL.bufferUsage -> unitval tex_image2d : t -> Js_of_ocaml.WebGL.texTarget -> int -> Js_of_ocaml.WebGL.pixelFormat -> Js_of_ocaml.WebGL.sizei -> Js_of_ocaml.WebGL.sizei -> int -> Js_of_ocaml.WebGL.pixelFormat -> Js_of_ocaml.WebGL.pixelType -> Js_of_ocaml__.Typed_array.arrayBufferView Js_of_ocaml__.Js.t -> unitval tex_sub_image2d : t -> Js_of_ocaml.WebGL.texTarget -> int -> int -> int -> Js_of_ocaml.WebGL.sizei -> Js_of_ocaml.WebGL.sizei -> Js_of_ocaml.WebGL.pixelFormat -> Js_of_ocaml.WebGL.pixelType -> Js_of_ocaml__.Typed_array.arrayBufferView Js_of_ocaml__.Js.t -> unitval debug : boolval check_error : t -> 'a -> unitval gen_textures : t -> int -> Js_of_ocaml.WebGL.texture Js_of_ocaml__.Js.t arrayval delete_textures : t -> Js_of_ocaml.WebGL.texture Js_of_ocaml__.Js.t array -> unitval uniform4fv : t -> [ `vec4 ] Js_of_ocaml.WebGL.uniformLocation Js_of_ocaml__.Js.t -> Buffer.Float.t -> unitval temp_array : float Js_of_ocaml.Js.js_array Js_of_ocaml.Js.tval uniform2fv : t -> [ `vec2 ] Js_of_ocaml.WebGL.uniformLocation Js_of_ocaml__.Js.t -> Buffer.Float.t -> unitval bind_buffer : t -> Js_of_ocaml.WebGL.bufferTarget -> buffer_id -> unitval draw_arrays : t -> Js_of_ocaml.WebGL.beginMode -> int -> Js_of_ocaml.WebGL.sizei -> unitval generate_mipmap : t -> Js_of_ocaml.WebGL.texTarget -> unitval color_mask : t -> bool -> bool -> bool -> bool -> unit
val use_program : t -> Js_of_ocaml.WebGL.program Js_of_ocaml__.Js.t -> unitval uniform1i : t -> int Js_of_ocaml.WebGL.uniformLocation Js_of_ocaml__.Js.t -> int -> unitval get_uniform_location : t -> Js_of_ocaml.WebGL.program Js_of_ocaml__.Js.t -> string -> 'a Js_of_ocaml.WebGL.uniformLocation Js_of_ocaml__.Js.tval finish : t -> unit
type locs={frag : [ `vec4 ] uniform_location;tex : int uniform_location;view_size : [ `vec2 ] uniform_location;vert_buf : buffer_id;}