Trait glitter::context::texture_context::TextureBinding
[−]
[src]
pub trait TextureBinding { type TextureType: TextureType; fn target(&self) -> TextureBindingTarget; }
Represents a texture that has been bound to a texture unit.
Associated Types
type TextureType: TextureType
The type of texture that this binding represents.
Required Methods
fn target(&self) -> TextureBindingTarget
The OpenGL texture target of this binding.
Implementors
impl<'a> TextureBinding for Texture2dBinding<'a> type TextureType = Tx2d;
impl<'a> TextureBinding for TextureCubeMapBinding<'a> type TextureType = TxCubeMap;