Class: Plaything::OpenAL::Buffer

Inherits:
TypeClass
  • Object
show all
Defined in:
lib/plaything/objects/buffer.rb

Class Method Summary collapse

Class Method Details

.extract(pointer, count) ⇒ Object



6
7
8
# File 'lib/plaything/objects/buffer.rb', line 6

def self.extract(pointer, count)
  count.times.map { |index| new pointer.get_uint(type.size * index) }
end