Module: GL_VERSION_1_2::RenderContext

Includes:
Roglew::RenderContextExtension
Defined in:
lib/roglew/extensions/GL_VERSION_1_2.rb

Instance Method Summary collapse

Methods included from Roglew::RenderContextExtension

included

Instance Method Details

#draw_range_elements(mode, indices) ⇒ Object



65
66
67
68
69
# File 'lib/roglew/extensions/GL_VERSION_1_2.rb', line 65

def draw_range_elements(mode, indices)
  p = FFI::MemoryPointer.new(:uint, indices.count)
  p.write_array_of_uint(indices)
  @rh.glDrawRangeElements(mode, 0, indices.count - 1, indices.count, GL::UNSIGNED_INT, p)
end