package graphv_webgl_impl
Module Graphv_webgl_implSource
Source
val bind_texture :
t ->
Js_of_ocaml.WebGL.texTarget ->
Js_of_ocaml.WebGL.texture Js_of_ocaml.Js.t option ->
unitSource
val stencil_func :
t ->
Js_of_ocaml.WebGL.depthFunction ->
int ->
Js_of_ocaml.WebGL.uint ->
unitSource
val stencil_op :
t ->
Js_of_ocaml.WebGL.stencilOp ->
Js_of_ocaml.WebGL.stencilOp ->
Js_of_ocaml.WebGL.stencilOp ->
unitSource
val stencil_op_separate :
t ->
Js_of_ocaml.WebGL.cullFaceMode ->
Js_of_ocaml.WebGL.stencilOp ->
Js_of_ocaml.WebGL.stencilOp ->
Js_of_ocaml.WebGL.stencilOp ->
unitSource
val blend_func_separate :
t ->
Js_of_ocaml.WebGL.blendingFactor ->
Js_of_ocaml.WebGL.blendingFactor ->
Js_of_ocaml.WebGL.blendingFactor ->
Js_of_ocaml.WebGL.blendingFactor ->
unitSource
val 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 ->
unitSource
val tex_parameteri_1 :
t ->
Js_of_ocaml.WebGL.texTarget ->
't58 Js_of_ocaml.WebGL.texParam ->
't58 ->
unitSource
val tex_parameteri_2 :
t ->
Js_of_ocaml.WebGL.texTarget ->
't62 Js_of_ocaml.WebGL.texParam ->
't62 ->
unitSource
val buffer_data :
t ->
Js_of_ocaml.WebGL.bufferTarget ->
buffer ->
Js_of_ocaml.WebGL.bufferUsage ->
unitSource
val 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 ->
unitSource
val 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 ->
unitSource
val uniform4fv :
t ->
[ `vec4 ] Js_of_ocaml.WebGL.uniformLocation Js_of_ocaml.Js.t ->
Buffer.Float.t ->
unitSource
val uniform2fv :
t ->
[ `vec2 ] Js_of_ocaml.WebGL.uniformLocation Js_of_ocaml.Js.t ->
Buffer.Float.t ->
unitSource
val 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.tSource
type locs = {frag : [ `vec4 ] uniform_location;tex : int uniform_location;view_size : [ `vec2 ] uniform_location;vert_buf : buffer_id;
}Source
val create_shader :
t ->
string ->
string ->
Js_of_ocaml.WebGL.program Js_of_ocaml.Js.t option