Class: Roglew::BufferContext
- Inherits:
-
Object
- Object
- Roglew::BufferContext
- Defined in:
- lib/roglew/extensions/GL_VERSION_1_5/buffer_context.rb
Instance Method Summary collapse
- #data(usage, buffer = nil, type = nil) ⇒ Object
-
#initialize(buffer, deferred, target, &block) ⇒ BufferContext
constructor
A new instance of BufferContext.
- #sub_data(offset, type, buffer) ⇒ Object
Constructor Details
#initialize(buffer, deferred, target, &block) ⇒ BufferContext
Returns a new instance of BufferContext.
11 12 13 14 |
# File 'lib/roglew/extensions/GL_VERSION_1_5/buffer_context.rb', line 11 def initialize(buffer, deferred, target, &block) @target = target super(buffer, deferred, &block) end |
Instance Method Details
#data(usage, buffer = nil, type = nil) ⇒ Object
16 17 18 |
# File 'lib/roglew/extensions/GL_VERSION_1_5/buffer_context.rb', line 16 def data(usage, buffer = nil, type = nil) buffer_data(@target, usage, buffer, type) end |
#sub_data(offset, type, buffer) ⇒ Object
20 21 22 |
# File 'lib/roglew/extensions/GL_VERSION_1_5/buffer_context.rb', line 20 def sub_data(offset, type, buffer) buffer_sub_data(@target, offset, type, buffer) end |