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