Trait glitter::context::program_context::ProgramContext [] [src]

pub trait ProgramContext: AContext {
    type Binder: BorrowMut<ProgramBinder>;
    type Rest: AContext;
    fn split_program(self) -> (Self::Binder, Self::Rest);

    fn use_program<'a>(
        self,
        program: &'a mut Program
    ) -> (ProgramBinding<'a>, Self::Rest)
    where
        Self: Sized
, { ... } }

An OpenGL context that has a free program binding.

Associated Types

The type of binder this context contains.

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

Required Methods

Split the context into a binder and the remaining context.

Provided Methods

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

Implementors