Class: Roglew::RenderbufferContextARB
- Inherits:
-
Object
- Object
- Roglew::RenderbufferContextARB
- Defined in:
- lib/roglew/extensions/GL_ARB_framebuffer_object/renderbuffer_context.rb
Instance Method Summary collapse
-
#initialize(renderbuffer, deferred, &block) ⇒ RenderbufferContextARB
constructor
A new instance of RenderbufferContextARB.
- #storage(width, height, internal_format) ⇒ Object
- #storage_multisample(width, height, samples, internal_format) ⇒ Object
Constructor Details
#initialize(renderbuffer, deferred, &block) ⇒ RenderbufferContextARB
Returns a new instance of RenderbufferContextARB.
31 32 33 |
# File 'lib/roglew/extensions/GL_ARB_framebuffer_object/renderbuffer_context.rb', line 31 def initialize(renderbuffer, deferred, &block) super end |
Instance Method Details
#storage(width, height, internal_format) ⇒ Object
35 36 37 |
# File 'lib/roglew/extensions/GL_ARB_framebuffer_object/renderbuffer_context.rb', line 35 def storage(width, height, internal_format) glRenderbufferStorage(GL::RENDERBUFFER, internal_format, width, height) end |
#storage_multisample(width, height, samples, internal_format) ⇒ Object
39 40 41 |
# File 'lib/roglew/extensions/GL_ARB_framebuffer_object/renderbuffer_context.rb', line 39 def storage_multisample(width, height, samples, internal_format) glRenderbufferStorageMultisample(GL::RENDERBUFFER, samples, internal_format, width, height) end |