Struct amethyst_renderer::MaterialTextureSet [−][src]
pub struct MaterialTextureSet { /* fields omitted */ }Textures used by texture animations
Methods
impl MaterialTextureSet[src]
impl MaterialTextureSetpub fn new() -> Self[src]
pub fn new() -> SelfCreate 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) -> usizeGet 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 MaterialTextureSetfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Default for MaterialTextureSet[src]
impl Default for MaterialTextureSetfn default() -> MaterialTextureSet[src]
fn default() -> MaterialTextureSetReturns the "default value" for a type. Read more
Auto Trait Implementations
impl Send for MaterialTextureSet
impl Send for MaterialTextureSetimpl Sync for MaterialTextureSet
impl Sync for MaterialTextureSet