class OpenGL::VertexArray

Defined in:

opengl/vertex_array.cr

Constant Summary

MODES = {points: LibGL::POINTS, line_strip: LibGL::LINE_STRIP, line_loop: LibGL::LINE_LOOP, lines: LibGL::LINES, line_strip_adjacency: LibGL::LINE_STRIP_ADJACENCY, lines_adjacency: LibGL::LINES_ADJACENCY, triangle_strip: LibGL::TRIANGLE_STRIP, triangle_fan: LibGL::TRIANGLE_FAN, triangles: LibGL::TRIANGLES, triangle_strip_adjacency: LibGL::TRIANGLE_STRIP_ADJACENCY, triangles_adjacency: LibGL::TRIANGLES_ADJACENCY, patches: LibGL::PATCHES}

Constructors

Instance Method Summary

Constructor Detail

def self.new #

[View source]

Instance Method Detail

def attribute_pointer(buffer : Buffer, index : LibGL::Int, size : LibGL::Int = 3, normalized : Bool = false, stride : LibGL::SizeI = 0) #

[View source]
def bind(&) #

[View source]
def bind! #

[View source]
def delete #

[View source]
def disable_attribute(index : LibGL::Int) #

[View source]
def draw_elements(buffer : Buffer, mode, number_of_elements = buffer.data.size) #

[View source]
def enable_attribute(index : LibGL::Int) #

[View source]
def finalize #

[View source]
def to_unsafe : UInt32 #

[View source]