Trait glitter::context::framebuffer_context::FramebufferContext [] [src]

pub trait FramebufferContext: AContext {
    type Binder: BorrowMut<FramebufferBinder>;
    type Rest: AContext;
    fn split_framebuffer(self) -> (Self::Binder, Self::Rest);

    fn bind_framebuffer<'a>(
        self,
        fbo: &'a mut Framebuffer
    ) -> (FramebufferBinding<'a>, Self::Rest)
    where
        Self: Sized
, { ... } }

An OpenGL context that has a free GL_FRAMEBUFFER binding.

Associated Types

The type of binder this context contains.

The OpenGL context that will be returned after binding a framebuffer.

Required Methods

Split the context into a binder and the remaining context.

Provided Methods

Bind a buffer to this context's framebuffer, returning a new context and a binding.

See also

glBindFramebuffer OpenGL docs

Implementors