Method: Ray::GL.draw_elements

Defined in:
ext/gl.c

.draw_elements(primitive, count, index) ⇒ Object



31
32
33
34
35
36
37
38
# File 'ext/gl.c', line 31

static
VALUE ray_gl_draw_elements(VALUE self, VALUE primitive, VALUE count,
                           VALUE index) {
  glDrawElements(NUM2INT(rb_hash_aref(ray_gl_primitives, primitive)),
                 NUM2ULONG(count),
                 GL_UNSIGNED_INT, (void*)NUM2ULONG(index));
  return Qnil;
}