Module Graphv_gles2_native_impl.Stubs
type float_buffer
= (float, Stdlib.Bigarray.float32_elt, Stdlib.Bigarray.c_layout) Stdlib.Bigarray.Array1.t
type blending_factor
= int
type texture_target
= int
type pixel_format
= int
type pixel_type
= int
type tex_filter
= int
type wrap_mode
= int
type tex_param_filter
= int
type tex_param_wrap
= int
type tex_param_filter_param
= int
type tex_param_wrap_param
= int
type pixel_store_param
= int
type enable_cap
= int
type depth_function
= int
type stencil_op
= int
type begin_mode
= int
type cull_face_mode
= int
type 'a uniform_location
= int
type front_face_dir
= int
type uniform_type
= int
type buffer_target
= int
type buffer_usage
= int
type error_code
= int
type texture
= int
type data_type
= int
type buffer
= int
type buffer_id
= int
type shader_type
= int
type shader
= int
type shader_param
= int
type program_param
= int
type enum
= int
val shader_type : shader_param
val delete_status : shader_param
val compile_status : shader_param
val info_log_length : shader_param
val shader_source_length : shader_param
val link_status : program_param
val prog_delete_status : program_param
val validate_status : program_param
val prog_info_log_length : program_param
val attached_shaders : program_param
val active_attributes : program_param
val active_attribute_max_length : program_param
val active_uniforms : program_param
val active_uniforms_max_length : program_param
val true_ : int
val false_ : int
val vertex_shader : shader_type
val invalid_enum : error_code
val fragment_shader : shader_type
val src_alpha : blending_factor
val dst_alpha : blending_factor
val no_error : enum
val zero : blending_factor
val rgba : pixel_format
val luminance : pixel_format
val unsigned_byte : pixel_type
val nearest_mipmap_nearest : tex_param_filter_param
val linear_mipmap_linear : tex_param_filter_param
val nearest : tex_param_filter_param
val linear : tex_param_filter_param
val zero_ : stencil_op
val one : blending_factor
val src_color : blending_factor
val dst_color : blending_factor
val one_minus_src_color : blending_factor
val one_minus_dst_color : blending_factor
val one_minus_src_alpha : blending_factor
val one_minus_dst_alpha : blending_factor
val src_alpha_saturate : blending_factor
val src_alpha : blending_factor
val dst_alpha : blending_factor
val texture_2d : texture_target
val rgba : pixel_format
val luminance : pixel_format
val unsigned_byte : pixel_type
val nearest_mipmap_nearest : tex_param_filter_param
val linear_mipmap_linear : tex_param_filter_param
val nearest : tex_param_filter_param
val linear : tex_param_filter_param
val texture_min_filter : tex_param_filter
val texture_mag_filter : tex_param_filter
val clamp_to_edge : tex_param_wrap_param
val texture_wrap_s : tex_param_wrap
val texture_wrap_t : tex_param_wrap
val repeat : tex_param_wrap_param
val unpack_alignment : pixel_store_param
val stencil_test : enable_cap
val equal : depth_function
val keep : stencil_op
val incr : stencil_op
val triangle_strip : begin_mode
val triangle_fan : begin_mode
val always : depth_function
val notequal : depth_function
val cull_face_enum : enable_cap
val back : cull_face_mode
val ccw : front_face_dir
val blend : enable_cap
val depth_test : enable_cap
val front : cull_face_mode
val incr_wrap : stencil_op
val decr_wrap : stencil_op
val scissor_test : enable_cap
val texture0 : enum
val float : data_type
val array_buffer : buffer_target
val triangles : begin_mode
val stream_draw : buffer_usage
val invalid_enum : error_code
val cull_face : cull_face_mode -> unit
val clear_color : float -> float -> float -> float -> unit
val uniform4fv : [ `vec4 ] uniform_location -> float_buffer -> unit
val uniform2fv : [ `vec2 ] uniform_location -> float_buffer -> unit
val buffer_data : buffer_target -> float_buffer -> buffer_usage -> unit
val enable : enable_cap -> unit
val disable : enable_cap -> unit
val finish : unit -> unit
val draw_arrays : begin_mode -> int -> int -> unit
val color_mask : bool -> bool -> bool -> bool -> unit
val front_face : front_face_dir -> unit
val active_texture : enum -> unit
val stencil_mask : int -> unit
val uniform1i : int uniform_location -> int -> unit
val stencil_func : depth_function -> int -> int -> unit
val stencil_op : stencil_op -> stencil_op -> stencil_op -> unit
val stencil_op_separate : cull_face_mode -> stencil_op -> stencil_op -> stencil_op -> unit
val blend_func_separate : blending_factor -> blending_factor -> blending_factor -> blending_factor -> unit
val pixel_storei : pixel_store_param -> int -> unit
val enable_vertex_attrib_array : int -> unit
val disable_vertex_attrib_array : int -> unit
val bind_buffer : buffer_target -> buffer_id -> unit
val tex_parameteri_1 : texture_target -> tex_param_filter -> tex_param_filter_param -> unit
val tex_parameteri_2 : texture_target -> tex_param_wrap -> tex_param_wrap_param -> unit
val create_program : unit -> int
val get_uniform_location : program -> string -> 'a uniform_location
val use_program : program -> unit
val generate_mipmap : texture_target -> unit
val gen_textures : int array -> unit
val delete_textures : int array -> unit
val vertex_attrib_pointer : int -> int -> data_type -> bool -> int -> int -> unit
val get_error : unit -> enum
val create_shader : shader_type -> shader
val shader_source : shader -> string -> unit
val compile_shader : shader -> unit
val attach_shader : program -> shader -> unit
val get_shaderiv : shader -> shader_param -> int
val link_program : program -> unit
val get_programiv : program -> program_param -> int
val bind_attrib_location : program -> int -> string -> unit
val delete_program : program -> unit
val delete_shader : shader -> unit
val get_shader_info_log : shader -> string
val get_program_info_log : program -> string
val gen_buffers : int array -> unit
val bind_texture : texture_target -> texture -> unit
type locs
=
{
frag : [ `vec4 ] uniform_location;
tex : int uniform_location;
view_size : [ `vec2 ] uniform_location;
vert_buf : buffer_id;
}
module Buffer : sig ... end
val tex_image2d : texture_target -> int -> pixel_format -> int -> int -> int -> pixel_format -> pixel_type -> Buffer.UByte.t -> unit
val tex_sub_image2d : texture_target -> int -> int -> int -> int -> int -> pixel_format -> pixel_type -> Buffer.UByte.t -> unit