Struct amethyst_renderer::MaterialTextureSet [−][src]
pub struct MaterialTextureSet { /* fields omitted */ }
Textures used by texture animations
Methods
impl MaterialTextureSet
[src]
impl MaterialTextureSet
pub fn new() -> Self
[src]
pub fn new() -> Self
Create new texture set
pub fn handle(&self, id: u64) -> Option<Handle<Texture>>
[src]
pub fn handle(&self, id: u64) -> Option<Handle<Texture>>
Retrieve the handle for a given index
pub fn id(&self, handle: &Handle<Texture>) -> Option<u64>
[src]
pub fn id(&self, handle: &Handle<Texture>) -> Option<u64>
Retrieve the index for a given handle
pub fn insert(&mut self, id: u64, handle: Handle<Texture>)
[src]
pub fn insert(&mut self, id: u64, handle: Handle<Texture>)
Insert a texture handle at the given index
pub fn remove(&mut self, id: u64)
[src]
pub fn remove(&mut self, id: u64)
Remove the given index
pub fn len(&self) -> usize
[src]
pub fn len(&self) -> usize
Get number of textures in the set
pub fn clear(&mut self)
[src]
pub fn clear(&mut self)
Remove all texture handles in the set
Trait Implementations
impl Debug for MaterialTextureSet
[src]
impl Debug for MaterialTextureSet
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Default for MaterialTextureSet
[src]
impl Default for MaterialTextureSet
fn default() -> MaterialTextureSet
[src]
fn default() -> MaterialTextureSet
Returns the "default value" for a type. Read more
Auto Trait Implementations
impl Send for MaterialTextureSet
impl Send for MaterialTextureSet
impl Sync for MaterialTextureSet
impl Sync for MaterialTextureSet