Trait glitter::context::texture_units::TextureUnit1Context
[−]
[src]
pub trait TextureUnit1Context: AContext { type Unit: BorrowMut<TextureUnit1>; type Rest: AContext; fn split_tex_unit_1(self) -> (Self::Unit, Self::Rest); fn active_texture_1(self) -> (TextureUnitBinding, Self::Rest) where Self: Sized { ... } }
An OpenGL context with the 1st texture unit free.
Associated Types
type Unit: BorrowMut<TextureUnit1>
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_1(self) -> (Self::Unit, Self::Rest)
Split the 1st texture unit from the context, returning the unit and the remaining context.
Provided Methods
fn active_texture_1(self) -> (TextureUnitBinding, Self::Rest) where Self: Sized
Make the 1st texture unit active, returning a binding and the remaining context
Implementors
impl<B, F, P, R, T0, T1, T2, T3, T4, T5, T6, T7> TextureUnit1Context for ContextOf<B, F, P, R, TextureUnitsOf<T0, T1, T2, T3, T4, T5, T6, T7>> where T1: BorrowMut<TextureUnit1>
impl<'a, B, F, P, R, T0, T1, T2, T3, T4, T5, T6, T7> TextureUnit1Context for &'a mut ContextOf<B, F, P, R, TextureUnitsOf<T0, T1, T2, T3, T4, T5, T6, T7>> where T1: BorrowMut<TextureUnit1>
impl<'a, B, F, P, R, T0, T1, T2, T3, T4, T5, T6, T7> TextureUnit1Context for &'a mut ContextOf<B, F, P, R, &'a mut TextureUnitsOf<T0, T1, T2, T3, T4, T5, T6, T7>> where T1: BorrowMut<TextureUnit1>, B: ToMut<'a>, F: ToMut<'a>, P: ToMut<'a>, R: ToMut<'a>