package glMLite

  1. Overview
  2. Docs
type vbo_id
val glGenBuffer : unit -> vbo_id
val glGenBuffers : n:int -> vbo_id array
val glDeleteBuffer : vbo:vbo_id -> unit
val glDeleteBuffers : vbos:vbo_id array -> unit
type buffer_object_target =
  1. | GL_ARRAY_BUFFER
  2. | GL_ELEMENT_ARRAY_BUFFER
  3. | GL_PIXEL_PACK_BUFFER
  4. | GL_PIXEL_UNPACK_BUFFER
val glBindBuffer : target:buffer_object_target -> vbo:vbo_id -> unit
val glUnbindBuffer : target:buffer_object_target -> unit
type vbo_usage_pattern =
  1. | GL_STREAM_DRAW
  2. | GL_STREAM_READ
  3. | GL_STREAM_COPY
  4. | GL_STATIC_DRAW
  5. | GL_STATIC_READ
  6. | GL_STATIC_COPY
  7. | GL_DYNAMIC_DRAW
  8. | GL_DYNAMIC_READ
  9. | GL_DYNAMIC_COPY
val glBufferData : target:buffer_object_target -> size:int -> data:('a, 'b, Bigarray.c_layout) Bigarray.Array1.t -> usage:vbo_usage_pattern -> unit
val glBufferDataNull : target:buffer_object_target -> size:int -> usage:vbo_usage_pattern -> unit
val glBufferSubData : target:buffer_object_target -> offset:int -> size:int -> data:('a, 'b, Bigarray.c_layout) Bigarray.Array1.t -> unit
val elem_size : ba:('a, 'b, Bigarray.c_layout) Bigarray.Array1.t -> int
val ba_sizeof : ba:('a, 'b, Bigarray.c_layout) Bigarray.Array1.t -> int
type access_policy =
  1. | GL_READ_ONLY
  2. | GL_WRITE_ONLY
  3. | GL_READ_WRITE
type mapped_buffer
val glMapBufferAbs : target:buffer_object_target -> access:access_policy -> mapped_buffer
val glUnmapBuffer : target:buffer_object_target -> unit
val mapped_buffer_blit : mapped_buffer -> (float, Bigarray.float32_elt, Bigarray.c_layout) Bigarray.Array1.t -> len:int -> unit
val mapped_buffer_blit_ofs : mapped_buffer -> (float, Bigarray.float32_elt, Bigarray.c_layout) Bigarray.Array1.t -> ofs:int -> len:int -> unit
type bo_param =
  1. | GL_BUFFER_ACCESS
  2. | GL_BUFFER_MAPPED
  3. | GL_BUFFER_SIZE
  4. | GL_BUFFER_USAGE
val glGetBufferAccess : target:buffer_object_target -> access_policy
val glGetBufferMapped : target:buffer_object_target -> bool
val glGetBufferSize : target:buffer_object_target -> int
val glGetBufferUsage : target:buffer_object_target -> vbo_usage_pattern
OCaml

Innovation. Community. Security.