class OpenGL::VertexArray
- OpenGL::VertexArray
- Reference
- Object
Defined in:
opengl/vertex_array.crConstant 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
- #attribute_pointer(buffer : Buffer, index : LibGL::Int, size : LibGL::Int = 3, normalized : Bool = false, stride : LibGL::SizeI = 0)
- #bind(&)
- #bind!
- #delete
- #disable_attribute(index : LibGL::Int)
- #draw_elements(buffer : Buffer, mode, number_of_elements = buffer.data.size)
- #enable_attribute(index : LibGL::Int)
- #finalize
- #to_unsafe : UInt32