Module: Roglew::ImmediateFramebufferContextARB

Defined in:
lib/roglew/extensions/GL_ARB_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_ARB_framebuffer_object/framebuffer_context.rb', line 12

def attachment_parameter(attachment, pname)
  framebuffer_attachment_parameter(@target, attachment, pname)
end

#included(c) ⇒ Object



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

def included(c)
  c.make_calls :handle, :glCheckFramebufferStatus
  c.make_calls :context, :framebuffer_attachment_parameter
end

#statusObject



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

def status
  glCheckFramebufferStatus(@target)
end