Class: Roglew::RenderbufferContextARB

Inherits:
Object
  • Object
show all
Defined in:
lib/roglew/extensions/GL_ARB_framebuffer_object/renderbuffer_context.rb

Instance Method Summary collapse

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