Trait glitter::context::renderbuffer_context::RenderbufferContext [] [src]

pub trait RenderbufferContext: AContext {
    type Binder: BorrowMut<RenderbufferBinder>;
    type Rest: AContext;
    fn split_renderbuffer(self) -> (Self::Binder, Self::Rest);

    fn bind_renderbuffer<'a>(
        self,
        rbo: &'a mut Renderbuffer
    ) -> (RenderbufferBinding<'a>, Self::Rest)
    where
        Self: Sized
, { ... } }

An OpenGL context that has a free GL_RENDERBUFFER binding.

Associated Types

The type of binder this context contains.

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

Required Methods

Split the context into a binder and the remaining context.

Provided Methods

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

See also

glBindRenderbuffer OpenGL docs

Implementors