Function rusty_gl::drawing::gl_draw_elements[][src]

pub fn gl_draw_elements(primitive: GLPrimitive, count: GLsizei, type_: GLType)

Render primitives from array data

Examples

gl_bind_vertex_array(GLTarget::ArrayBuffer, vao);
gl_draw_elements(GLPrimitive::Triangles, 36, GLType::UInt);

More: https://www.khronos.org/registry/OpenGL-Refpages/gl4/html/glDrawArrays.xhtml TODO: ptr thing