Function rusty_gl::drawing::gl_draw_elements_instanced[][src]

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

Draw multiple instances of a set of elements

Examples

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

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