Trait glitter::context::texture_units::TextureUnitBindingCubeMap
[−]
[src]
pub trait TextureUnitBindingCubeMap: ATextureUnitBinding { type Binder: BorrowMut<TextureCubeMapBinder>; type Rest: ATextureUnitBinding; fn split_texture_cube_map(self) -> (Self::Binder, Self::Rest); fn bind_texture_cube_map<'a>(
self,
tex: &'a mut TextureCubeMap
) -> (TextureCubeMapBinding<'a>, Self::Rest)
where
Self: Sized, { ... } }
A texture unit binding that has a free GL_TEXTURE_CUBE_MAP
binding.
Associated Types
type Binder: BorrowMut<TextureCubeMapBinder>
The type of binder this texture unit contains.
type Rest: ATextureUnitBinding
The texture unit that will be returned after binding the texture.
Required Methods
fn split_texture_cube_map(self) -> (Self::Binder, Self::Rest)
Split the texture unit into a binder and the remaining texture unit.
Provided Methods
fn bind_texture_cube_map<'a>(
self,
tex: &'a mut TextureCubeMap
) -> (TextureCubeMapBinding<'a>, Self::Rest) where
Self: Sized,
self,
tex: &'a mut TextureCubeMap
) -> (TextureCubeMapBinding<'a>, Self::Rest) where
Self: Sized,
Bind a cubemap texture to this texture unit, returning a binding and the remaining texture unit.
Implementors
impl<T2, TC> TextureUnitBindingCubeMap for TextureUnitBindingOf<T2, TC> where
TC: BorrowMut<TextureCubeMapBinder>, type Binder = TC; type Rest = TextureUnitBindingOf<T2, ()>;impl<'a, T2, TC> TextureUnitBindingCubeMap for &'a mut TextureUnitBindingOf<T2, TC> where
TC: BorrowMut<TextureCubeMapBinder>, type Binder = &'a mut TextureCubeMapBinder; type Rest = TextureUnitBindingOf<&'a mut T2, ()>;