Tgles2.Gl
OpenGL ES 2 bindings.
Types, functions and enumerants.
val bigarray_byte_size : ( 'a, 'b ) bigarray -> int
bigarray_byte_size ba
is the size of ba
in bytes.
val string_of_bigarray :
( char, Bigarray.int8_unsigned_elt ) bigarray ->
string
string_of_bigarray ba
is ba
until the first '\x00'
, as a string.
type enum_bigarray = ( int32, Bigarray.int32_elt ) bigarray
type uint32_bigarray = ( int32, Bigarray.int32_elt ) bigarray
val active_texture : enum -> unit
glActiveTexture
texture
glAttachShader
program shader
glBindAttribLocation
program index name
val bind_buffer : enum -> int -> unit
glBindBuffer
target buffer
val bind_framebuffer : enum -> int -> unit
glBindFramebuffer
target framebuffer
val bind_renderbuffer : enum -> int -> unit
glBindRenderbuffer
target renderbuffer
val bind_texture : enum -> int -> unit
glBindTexture
target texture
glBlendColor
red green blue alpha
val blend_equation : enum -> unit
glBlendEquation
mode
glBlendEquationSeparate
modeRGB modeAlpha
glBlendFunc
sfactor dfactor
glBlendFuncSeparate
sfactorRGB dfactorRGB sfactorAlpha
dfactorAlpha
glBufferData
target size data usage
glBufferSubData
target offset size data
glCheckFramebufferStatus
target
glClearColor
red green blue alpha
glColorMask
red green blue alpha
glCompileShader
shader
val compressed_tex_image2d :
enum ->
int ->
enum ->
int ->
int ->
int ->
int ->
[ `Offset of int | `Data of ( 'a, 'b ) bigarray ] ->
unit
glCompressedTexImage2D
target level internalformat width height
border imageSize data
val compressed_tex_sub_image2d :
enum ->
int ->
int ->
int ->
int ->
int ->
enum ->
int ->
[ `Offset of int | `Data of ( 'a, 'b ) bigarray ] ->
unit
glCompressedTexSubImage2D
target level xoffset yoffset width height
format imageSize data
glCopyTexImage2D
target level internalformat x y width height
border
val copy_tex_sub_image2d :
enum ->
int ->
int ->
int ->
int ->
int ->
int ->
int ->
unit
glCopyTexSubImage2D
target level xoffset yoffset x y width height
val create_shader : enum -> int
glCreateShader
type_
val cull_face : enum -> unit
glCullFace
mode
val delete_buffers : int -> uint32_bigarray -> unit
glDeleteBuffers
n buffers
val delete_framebuffers : int -> uint32_bigarray -> unit
glDeleteFramebuffers
n framebuffers
glDeleteProgram
program
val delete_renderbuffers : int -> uint32_bigarray -> unit
glDeleteRenderbuffers
n renderbuffers
glDeleteShader
shader
val delete_textures : int -> uint32_bigarray -> unit
glDeleteTextures
n textures
val depth_func : enum -> unit
glDepthFunc
func
glDepthMask
flag
glDepthRangef
n f
glDetachShader
program shader
val draw_arrays : enum -> int -> int -> unit
glDrawArrays
mode first count
val draw_elements :
enum ->
int ->
enum ->
[ `Offset of int | `Data of ( 'a, 'b ) bigarray ] ->
unit
glDrawElements
mode count type_ indices
glFinish
()
glFlush
()
glFramebufferRenderbuffer
target attachment renderbuffertarget
renderbuffer
glFramebufferTexture2D
target attachment textarget texture level
val front_face : enum -> unit
glFrontFace
mode
val gen_buffers : int -> uint32_bigarray -> unit
glGenBuffers
n buffers
val gen_framebuffers : int -> uint32_bigarray -> unit
glGenFramebuffers
n framebuffers
val gen_renderbuffers : int -> uint32_bigarray -> unit
glGenRenderbuffers
n renderbuffers
val gen_textures : int -> uint32_bigarray -> unit
glGenTextures
n textures
val generate_mipmap : enum -> unit
glGenerateMipmap
target
val get_active_attrib :
int ->
int ->
int ->
( int32, Bigarray.int32_elt ) bigarray option ->
( int32, Bigarray.int32_elt ) bigarray ->
enum_bigarray ->
( char, Bigarray.int8_unsigned_elt ) bigarray ->
unit
glGetActiveAttrib
program index bufSize length size type_ name
val get_active_uniform :
int ->
int ->
int ->
( int32, Bigarray.int32_elt ) bigarray option ->
( int32, Bigarray.int32_elt ) bigarray ->
enum_bigarray ->
( char, Bigarray.int8_unsigned_elt ) bigarray ->
unit
glGetActiveUniform
program index bufSize length size type_ name
val get_attached_shaders :
int ->
int ->
( int32, Bigarray.int32_elt ) bigarray option ->
uint32_bigarray ->
unit
glGetAttachedShaders
program maxCount count shaders
glGetAttribLocation
program name
glGetBooleanv
pname data
glGetBufferParameteriv
target pname params
val get_error : unit -> enum
glGetError
()
glGetFloatv
pname data
val get_framebuffer_attachment_parameteriv :
enum ->
enum ->
enum ->
( int32, Bigarray.int32_elt ) bigarray ->
unit
glGetFramebufferAttachmentParameteriv
target attachment pname
params
glGetIntegerv
pname data
val get_program_info_log :
int ->
int ->
( int32, Bigarray.int32_elt ) bigarray option ->
( char, Bigarray.int8_unsigned_elt ) bigarray ->
unit
glGetProgramInfoLog
program bufSize length infoLog
glGetProgramiv
program pname params
glGetRenderbufferParameteriv
target pname params
val get_shader_info_log :
int ->
int ->
( int32, Bigarray.int32_elt ) bigarray option ->
( char, Bigarray.int8_unsigned_elt ) bigarray ->
unit
glGetShaderInfoLog
shader bufSize length infoLog
val get_shader_precision_format :
enum ->
enum ->
( int32, Bigarray.int32_elt ) bigarray ->
( int32, Bigarray.int32_elt ) bigarray ->
unit
glGetShaderPrecisionFormat
shadertype precisiontype range
precision
val get_shader_source :
int ->
int ->
( int32, Bigarray.int32_elt ) bigarray option ->
( char, Bigarray.int8_unsigned_elt ) bigarray ->
unit
glGetShaderSource
shader bufSize length source
glGetShaderiv
shader pname params
val get_string : enum -> string option
glGetString
name
glGetTexParameterfv
target pname params
glGetTexParameteriv
target pname params
glGetUniformLocation
program name
val get_uniformfv :
int ->
int ->
( float, Bigarray.float32_elt ) bigarray ->
unit
glGetUniformfv
program location params
val get_uniformiv :
int ->
int ->
( int32, Bigarray.int32_elt ) bigarray ->
unit
glGetUniformiv
program location params
val get_vertex_attrib_pointerv :
int ->
enum ->
( nativeint, Bigarray.nativeint_elt ) bigarray ->
unit
glGetVertexAttribPointerv
index pname pointer
glGetVertexAttribfv
index pname params
glGetVertexAttribiv
index pname params
glIsBuffer
buffer
val is_enabled : enum -> bool
glIsEnabled
cap
glIsFramebuffer
framebuffer
glIsProgram
program
glIsRenderbuffer
renderbuffer
glIsShader
shader
glIsTexture
texture
glLineWidth
width
glLinkProgram
program
val pixel_storei : enum -> int -> unit
glPixelStorei
pname param
glPolygonOffset
factor units
val read_pixels :
int ->
int ->
int ->
int ->
enum ->
enum ->
[ `Offset of int | `Data of ( 'a, 'b ) bigarray ] ->
unit
glReadPixels
x y width height format type_ pixels
glRenderbufferStorage
target internalformat width height
glSampleCoverage
value invert
glScissor
x y width height
val shader_binary :
int ->
uint32_bigarray ->
enum ->
( 'a, 'b ) bigarray ->
int ->
unit
glShaderBinary
count shaders binaryformat binary length
glShaderSource
shader source
val stencil_func : enum -> int -> int -> unit
glStencilFunc
func ref mask
glStencilFuncSeparate
face func ref mask
glStencilMask
mask
val stencil_mask_separate : enum -> int -> unit
glStencilMaskSeparate
face mask
glStencilOp
fail zfail zpass
glStencilOpSeparate
face sfail dpfail dppass
val tex_image2d :
enum ->
int ->
int ->
int ->
int ->
int ->
enum ->
enum ->
[ `Offset of int | `Data of ( 'a, 'b ) bigarray ] ->
unit
glTexImage2D
target level internalformat width height border format
type_ pixels
glTexParameterf
target pname param
glTexParameterfv
target pname params
glTexParameteri
target pname param
glTexParameteriv
target pname params
val tex_sub_image2d :
enum ->
int ->
int ->
int ->
int ->
int ->
enum ->
enum ->
[ `Offset of int | `Data of ( 'a, 'b ) bigarray ] ->
unit
glTexSubImage2D
target level xoffset yoffset width height format
type_ pixels
glUniform1f
location v0
val uniform1fv : int -> int -> ( float, Bigarray.float32_elt ) bigarray -> unit
glUniform1fv
location count value
glUniform1i
location v0
val uniform1iv : int -> int -> ( int32, Bigarray.int32_elt ) bigarray -> unit
glUniform1iv
location count value
glUniform2f
location v0 v1
val uniform2fv : int -> int -> ( float, Bigarray.float32_elt ) bigarray -> unit
glUniform2fv
location count value
glUniform2i
location v0 v1
val uniform2iv : int -> int -> ( int32, Bigarray.int32_elt ) bigarray -> unit
glUniform2iv
location count value
glUniform3f
location v0 v1 v2
val uniform3fv : int -> int -> ( float, Bigarray.float32_elt ) bigarray -> unit
glUniform3fv
location count value
glUniform3i
location v0 v1 v2
val uniform3iv : int -> int -> ( int32, Bigarray.int32_elt ) bigarray -> unit
glUniform3iv
location count value
glUniform4f
location v0 v1 v2 v3
val uniform4fv : int -> int -> ( float, Bigarray.float32_elt ) bigarray -> unit
glUniform4fv
location count value
glUniform4i
location v0 v1 v2 v3
val uniform4iv : int -> int -> ( int32, Bigarray.int32_elt ) bigarray -> unit
glUniform4iv
location count value
val uniform_matrix2fv :
int ->
int ->
bool ->
( float, Bigarray.float32_elt ) bigarray ->
unit
glUniformMatrix2fv
location count transpose value
val uniform_matrix3fv :
int ->
int ->
bool ->
( float, Bigarray.float32_elt ) bigarray ->
unit
glUniformMatrix3fv
location count transpose value
val uniform_matrix4fv :
int ->
int ->
bool ->
( float, Bigarray.float32_elt ) bigarray ->
unit
glUniformMatrix4fv
location count transpose value
glUseProgram
program
glValidateProgram
program
glVertexAttrib1f
index x
val vertex_attrib1fv : int -> ( float, Bigarray.float32_elt ) bigarray -> unit
glVertexAttrib1fv
index v
glVertexAttrib2f
index x y
val vertex_attrib2fv : int -> ( float, Bigarray.float32_elt ) bigarray -> unit
glVertexAttrib2fv
index v
glVertexAttrib3f
index x y z
val vertex_attrib3fv : int -> ( float, Bigarray.float32_elt ) bigarray -> unit
glVertexAttrib3fv
index v
glVertexAttrib4f
index x y z w
val vertex_attrib4fv : int -> ( float, Bigarray.float32_elt ) bigarray -> unit
glVertexAttrib4fv
index v
val vertex_attrib_pointer :
int ->
int ->
enum ->
bool ->
int ->
[ `Offset of int | `Data of ( 'a, 'b ) bigarray ] ->
unit
glVertexAttribPointer
index size type_ normalized stride pointer
glViewport
x y width height
val active_attributes : enum
val active_attribute_max_length : enum
val active_texture_enum : enum
val active_uniforms : enum
val active_uniform_max_length : enum
val aliased_line_width_range : enum
val aliased_point_size_range : enum
val alpha : enum
val alpha_bits : enum
val always : enum
val array_buffer : enum
val array_buffer_binding : enum
val attached_shaders : enum
val back : enum
val blend : enum
val blend_color_enum : enum
val blend_dst_alpha : enum
val blend_dst_rgb : enum
val blend_equation_enum : enum
val blend_equation_alpha : enum
val blend_equation_rgb : enum
val blend_src_alpha : enum
val blend_src_rgb : enum
val blue_bits : enum
val bool : enum
val bool_vec2 : enum
val bool_vec3 : enum
val bool_vec4 : enum
val buffer_size : enum
val buffer_usage : enum
val byte : enum
val ccw : enum
val clamp_to_edge : enum
val color_attachment0 : enum
val color_buffer_bit : enum
val color_clear_value : enum
val color_writemask : enum
val compile_status : enum
val compressed_texture_formats : enum
val constant_alpha : enum
val constant_color : enum
val cull_face_enum : enum
val cull_face_mode : enum
val current_program : enum
val current_vertex_attrib : enum
val cw : enum
val decr : enum
val decr_wrap : enum
val delete_status : enum
val depth_attachment : enum
val depth_bits : enum
val depth_buffer_bit : enum
val depth_clear_value : enum
val depth_component : enum
val depth_component16 : enum
val depth_func_enum : enum
val depth_range : enum
val depth_test : enum
val depth_writemask : enum
val dither : enum
val dont_care : enum
val dst_alpha : enum
val dst_color : enum
val dynamic_draw : enum
val element_array_buffer : enum
val element_array_buffer_binding : enum
val equal : enum
val extensions : enum
val false_ : enum
val fastest : enum
val fixed : enum
val float : enum
val float_mat2 : enum
val float_mat3 : enum
val float_mat4 : enum
val float_vec2 : enum
val float_vec3 : enum
val float_vec4 : enum
val fragment_shader : enum
val framebuffer : enum
val framebuffer_attachment_object_name : enum
val framebuffer_attachment_object_type : enum
val framebuffer_attachment_texture_cube_map_face : enum
val framebuffer_attachment_texture_level : enum
val framebuffer_binding : enum
val framebuffer_complete : enum
val framebuffer_incomplete_attachment : enum
val framebuffer_incomplete_dimensions : enum
val framebuffer_incomplete_missing_attachment : enum
val framebuffer_unsupported : enum
val front : enum
val front_and_back : enum
val front_face_enum : enum
val func_add : enum
val func_reverse_subtract : enum
val func_subtract : enum
val generate_mipmap_hint : enum
val gequal : enum
val greater : enum
val green_bits : enum
val high_float : enum
val high_int : enum
val implementation_color_read_format : enum
val implementation_color_read_type : enum
val incr : enum
val incr_wrap : enum
val info_log_length : enum
val int : enum
val int_vec2 : enum
val int_vec3 : enum
val int_vec4 : enum
val invalid_enum : enum
val invalid_framebuffer_operation : enum
val invalid_operation : enum
val invalid_value : enum
val invert : enum
val keep : enum
val lequal : enum
val less : enum
val linear : enum
val linear_mipmap_linear : enum
val linear_mipmap_nearest : enum
val lines : enum
val line_loop : enum
val line_strip : enum
val line_width_enum : enum
val link_status : enum
val low_float : enum
val low_int : enum
val luminance : enum
val luminance_alpha : enum
val max_combined_texture_image_units : enum
val max_cube_map_texture_size : enum
val max_fragment_uniform_vectors : enum
val max_renderbuffer_size : enum
val max_texture_image_units : enum
val max_texture_size : enum
val max_varying_vectors : enum
val max_vertex_attribs : enum
val max_vertex_texture_image_units : enum
val max_vertex_uniform_vectors : enum
val max_viewport_dims : enum
val medium_float : enum
val medium_int : enum
val mirrored_repeat : enum
val nearest : enum
val nearest_mipmap_linear : enum
val nearest_mipmap_nearest : enum
val never : enum
val nicest : enum
val none : enum
val notequal : enum
val no_error : enum
val num_compressed_texture_formats : enum
val num_shader_binary_formats : enum
val one : enum
val one_minus_constant_alpha : enum
val one_minus_constant_color : enum
val one_minus_dst_alpha : enum
val one_minus_dst_color : enum
val one_minus_src_alpha : enum
val one_minus_src_color : enum
val out_of_memory : enum
val pack_alignment : enum
val points : enum
val polygon_offset_factor : enum
val polygon_offset_fill : enum
val polygon_offset_units : enum
val red_bits : enum
val renderbuffer : enum
val renderbuffer_alpha_size : enum
val renderbuffer_binding : enum
val renderbuffer_blue_size : enum
val renderbuffer_depth_size : enum
val renderbuffer_green_size : enum
val renderbuffer_height : enum
val renderbuffer_internal_format : enum
val renderbuffer_red_size : enum
val renderbuffer_stencil_size : enum
val renderbuffer_width : enum
val renderer : enum
val repeat : enum
val replace : enum
val rgb : enum
val rgb565 : enum
val rgb5_a1 : enum
val rgba : enum
val rgba4 : enum
val sampler_2d : enum
val sampler_cube : enum
val samples : enum
val sample_alpha_to_coverage : enum
val sample_buffers : enum
val sample_coverage_enum : enum
val sample_coverage_invert : enum
val sample_coverage_value : enum
val scissor_box : enum
val scissor_test : enum
val shader_binary_formats : enum
val shader_compiler : enum
val shader_source_length : enum
val shader_type : enum
val shading_language_version : enum
val short : enum
val src_alpha : enum
val src_alpha_saturate : enum
val src_color : enum
val static_draw : enum
val stencil_attachment : enum
val stencil_back_fail : enum
val stencil_back_func : enum
val stencil_back_pass_depth_fail : enum
val stencil_back_pass_depth_pass : enum
val stencil_back_ref : enum
val stencil_back_value_mask : enum
val stencil_back_writemask : enum
val stencil_bits : enum
val stencil_buffer_bit : enum
val stencil_clear_value : enum
val stencil_fail : enum
val stencil_func_enum : enum
val stencil_index8 : enum
val stencil_pass_depth_fail : enum
val stencil_pass_depth_pass : enum
val stencil_ref : enum
val stencil_test : enum
val stencil_value_mask : enum
val stencil_writemask : enum
val stream_draw : enum
val subpixel_bits : enum
val texture : enum
val texture0 : enum
val texture1 : enum
val texture10 : enum
val texture11 : enum
val texture12 : enum
val texture13 : enum
val texture14 : enum
val texture15 : enum
val texture16 : enum
val texture17 : enum
val texture18 : enum
val texture19 : enum
val texture2 : enum
val texture20 : enum
val texture21 : enum
val texture22 : enum
val texture23 : enum
val texture24 : enum
val texture25 : enum
val texture26 : enum
val texture27 : enum
val texture28 : enum
val texture29 : enum
val texture3 : enum
val texture30 : enum
val texture31 : enum
val texture4 : enum
val texture5 : enum
val texture6 : enum
val texture7 : enum
val texture8 : enum
val texture9 : enum
val texture_2d : enum
val texture_binding_2d : enum
val texture_binding_cube_map : enum
val texture_cube_map : enum
val texture_cube_map_negative_x : enum
val texture_cube_map_negative_y : enum
val texture_cube_map_negative_z : enum
val texture_cube_map_positive_x : enum
val texture_cube_map_positive_y : enum
val texture_cube_map_positive_z : enum
val texture_mag_filter : enum
val texture_min_filter : enum
val texture_wrap_s : enum
val texture_wrap_t : enum
val triangles : enum
val triangle_fan : enum
val triangle_strip : enum
val true_ : enum
val unpack_alignment : enum
val unsigned_byte : enum
val unsigned_int : enum
val unsigned_short : enum
val unsigned_short_4_4_4_4 : enum
val unsigned_short_5_5_5_1 : enum
val unsigned_short_5_6_5 : enum
val validate_status : enum
val vendor : enum
val version : enum
val vertex_attrib_array_buffer_binding : enum
val vertex_attrib_array_enabled : enum
val vertex_attrib_array_normalized : enum
val vertex_attrib_array_pointer : enum
val vertex_attrib_array_size : enum
val vertex_attrib_array_stride : enum
val vertex_attrib_array_type : enum
val vertex_shader : enum
val viewport_enum : enum
val zero : enum