Module: Roglew::ImmediateFramebufferContextEXT

Defined in:
lib/roglew/extensions/GL_EXT_framebuffer_object/framebuffer_context.rb

Instance Method Summary collapse

Instance Method Details

#attachment_parameter(attachment, pname) ⇒ Object



12
13
14
# File 'lib/roglew/extensions/GL_EXT_framebuffer_object/framebuffer_context.rb', line 12

def attachment_parameter(attachment, pname)
  framebuffer_attachment_parameterEXT(GL::FRAMEBUFFER_EXT, attachment, pname)
end

#included(c) ⇒ Object



3
4
5
6
# File 'lib/roglew/extensions/GL_EXT_framebuffer_object/framebuffer_context.rb', line 3

def included(c)
  c.make_calls :handle, :glCheckFramebufferStatusEXT
  c.make_calls :context, :framebuffer_attachment_parameterEXT
end

#statusObject



8
9
10
# File 'lib/roglew/extensions/GL_EXT_framebuffer_object/framebuffer_context.rb', line 8

def status
  glCheckFramebufferStatusEXT(@target)
end