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

The type of binder this texture unit contains.

The texture unit that will be returned after binding the texture.

Required Methods

Split the texture unit into a binder and the remaining texture unit.

Provided Methods

Bind a cubemap texture to this texture unit, returning a binding and the remaining texture unit.

Implementors