Struct glitter::context::framebuffer_context::FramebufferBinder
[−]
[src]
pub struct FramebufferBinder { /* fields omitted */ }
The OpenGL state representing the GL_FRAMEBUFFER
target.
Methods
impl FramebufferBinder
[src]
pub unsafe fn current() -> Self
[src]
Get the current GL_FRAMEBUFFER
binder.
Safety
The same rules apply to this method as the
ContextOf::current_context()
method.
pub unsafe fn current_binding(&mut self) -> FramebufferBinding
[src]
Get the current GL_FRAMEBUFFER
binding.
Safety
This function should not be used to create an aliasing framebuffer binding.
pub fn bind<'a>(&mut self, fbo: &'a mut Framebuffer) -> FramebufferBinding<'a>
[src]
Bind a framebuffer to the GL_FRAMEBUFFER
target, returning a binding.