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

pub trait TextureUnit4Context: AContext {
    type Unit: BorrowMut<TextureUnit4>;
    type Rest: AContext;
    fn split_tex_unit_4(self) -> (Self::Unit, Self::Rest);

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

An OpenGL context with the 4th texture unit free.

Associated Types

The type of unit this context contains.

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

Required Methods

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

Provided Methods

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

Implementors