Trait glitter::context::texture_units::TextureUnit5Context [] [src]

pub trait TextureUnit5Context: AContext {
    type Unit: BorrowMut<TextureUnit5>;
    type Rest: AContext;
    fn split_tex_unit_5(self) -> (Self::Unit, Self::Rest);

    fn active_texture_5(self) -> (TextureUnitBinding, Self::Rest) where Self: Sized { ... }
}

An OpenGL context with the 5th texture unit free.

Associated Types

type Unit: BorrowMut<TextureUnit5>

The type of unit this context contains.

type Rest: AContext

The OpenGL context that will be returned after making the texture unit active.

Required Methods

fn split_tex_unit_5(self) -> (Self::Unit, Self::Rest)

Split the 5th texture unit from the context, returning the unit and the remaining context.

Provided Methods

fn active_texture_5(self) -> (TextureUnitBinding, Self::Rest) where Self: Sized

Make the 5th texture unit active, returning a binding and the remaining context

Implementors