class OpenGL::Buffer(T)
Defined in:
opengl/buffer.cr
Constant Summary
-
TARGETS =
{array: LibGL::ARRAY_BUFFER, atomic_counter: LibGL::ATOMIC_COUNTER_BUFFER, copy_read: LibGL::COPY_READ_BUFFER, copy_write: LibGL::COPY_WRITE_BUFFER, dispatch_indirect: LibGL::DISPATCH_INDIRECT_BUFFER, draw_indirect: LibGL::DRAW_INDIRECT_BUFFER, element_array: LibGL::ELEMENT_ARRAY_BUFFER, pixel_pack: LibGL::PIXEL_PACK_BUFFER, pixel_unpack: LibGL::PIXEL_UNPACK_BUFFER, query: LibGL::QUERY_BUFFER, shader_storage: LibGL::SHADER_STORAGE_BUFFER, texture: LibGL::TEXTURE_BUFFER, transform_feedback: LibGL::TRANSFORM_FEEDBACK_BUFFER, uniform: LibGL::UNIFORM_BUFFER}
-
TYPES =
{Int32 => LibGL::INT, Int16 => LibGL::SHORT, Int8 => LibGL::BYTE, UInt32 => LibGL::UNSIGNED_INT, UInt16 => LibGL::UNSIGNED_SHORT, UInt8 => LibGL::UNSIGNED_BYTE, Float64 => LibGL::DOUBLE, Float32 => LibGL::FLOAT}
-
USAGES =
{stream_draw: LibGL::STREAM_DRAW, stream_read: LibGL::STREAM_READ, stream_copy: LibGL::STREAM_COPY, static_draw: LibGL::STATIC_DRAW, static_read: LibGL::STATIC_READ, static_copy: LibGL::STATIC_COPY, dynamic_draw: LibGL::DYNAMIC_DRAW, dynamic_read: LibGL::DYNAMIC_READ, dynamic_copy: LibGL::DYNAMIC_COPY}
Constructors
Instance Method Summary
Constructor Detail
def self.
new(target, usage)
#
Instance Method Detail
def
data=(data : Array(T))
#