Struct rin::scene::renderer::MaterialPool [−][src]
pub struct MaterialPool<M = MaterialRef> where
M: Key, { /* fields omitted */ }
Implementations
impl MaterialPool<MaterialRef>
[src]
impl MaterialPool<MaterialRef>
[src]pub fn new(
unified_material_ubo: bool,
world: &mut DeferredScene,
gl: &Renderer<'_, Screen>
) -> MaterialPool<MaterialRef>
[src]
unified_material_ubo: bool,
world: &mut DeferredScene,
gl: &Renderer<'_, Screen>
) -> MaterialPool<MaterialRef>
impl MaterialPool<ShadowMaterialRef>
[src]
impl MaterialPool<ShadowMaterialRef>
[src]pub fn new_shadows(
unified_material_ubo: bool,
world: &mut DeferredScene,
gl: &Renderer<'_, Screen>
) -> MaterialPool<ShadowMaterialRef>
[src]
unified_material_ubo: bool,
world: &mut DeferredScene,
gl: &Renderer<'_, Screen>
) -> MaterialPool<ShadowMaterialRef>
impl<M> MaterialPool<M> where
M: 'static + Key + Copy,
[src]
impl<M> MaterialPool<M> where
M: 'static + Key + Copy,
[src]pub fn register_material<F>(&mut self, name: &str, material: F) -> M where
F: 'static + FullMaterial,
[src]
F: 'static + FullMaterial,
pub fn remove(&mut self, material: M)
[src]
pub fn find_material(&self, name: &str) -> Option<M>
[src]
pub fn material_name(&self, materialref: M) -> Option<&str>
[src]
pub fn dyn_materials(&self) -> impl Iterator<Item = &dyn Material>
[src]
pub fn iter_dyn(&self) -> impl Iterator<Item = (M, &dyn Material)>
[src]
pub fn materials<F>(&self) -> impl Iterator<Item = &F> where
F: FullMaterial,
[src]
F: FullMaterial,
pub fn named_materials<F>(&self) -> impl Iterator<Item = (String, &F)> where
F: FullMaterial,
[src]
F: FullMaterial,
pub fn iter<F>(&self) -> impl Iterator<Item = (M, &F)> where
F: FullMaterial,
[src]
F: FullMaterial,
pub fn named_iter<F>(&self) -> impl Iterator<Item = (String, M, &F)> where
F: FullMaterial,
[src]
F: FullMaterial,
pub fn materials_mut<F>(&mut self) -> impl Iterator<Item = &mut F> where
F: FullMaterial,
[src]
F: FullMaterial,
pub fn named_materials_mut<F>(
&mut self
) -> impl Iterator<Item = (String, &mut F)> where
F: FullMaterial,
[src]
&mut self
) -> impl Iterator<Item = (String, &mut F)> where
F: FullMaterial,
pub fn iter_mut<F>(&mut self) -> impl Iterator<Item = (M, &mut F)> where
F: FullMaterial,
[src]
F: FullMaterial,
pub fn named_iter_mut<F>(&mut self) -> impl Iterator<Item = (String, M, &mut F)> where
F: FullMaterial,
[src]
F: FullMaterial,
pub fn material<F>(&self, materialref: M) -> Option<&F> where
F: FullMaterial,
[src]
F: FullMaterial,
pub fn material_mut<F>(&mut self, materialref: M) -> Option<&mut F> where
F: FullMaterial,
[src]
F: FullMaterial,
pub fn dyn_material(&self, materialref: M) -> Option<&dyn Material>
[src]
pub fn dyn_material_mut(&mut self, materialref: M) -> Option<&mut dyn Material>
[src]
impl MaterialPool<MaterialRef>
[src]
impl MaterialPool<MaterialRef>
[src]pub fn unused<'a, E>(&self, entities: &E) -> Vec<MaterialRef, Global>ⓘ where
E: EntitiesExt<'a>,
[src]
E: EntitiesExt<'a>,
pub fn remove_unused<'a, E>(&mut self, entities: &E) where
E: EntitiesExt<'a>,
[src]
E: EntitiesExt<'a>,
Trait Implementations
impl<M> Index<M> for MaterialPool<M> where
M: Key,
[src]
impl<M> Index<M> for MaterialPool<M> where
M: Key,
[src]type Output = Box<dyn FullMaterial + 'static, Global>
The returned type after indexing.
pub fn index(&self, index: M) -> &Box<dyn FullMaterial + 'static, Global>
[src]
impl<M> IndexMut<M> for MaterialPool<M> where
M: Key,
[src]
impl<M> IndexMut<M> for MaterialPool<M> where
M: Key,
[src]pub fn index_mut(
&mut self,
index: M
) -> &mut Box<dyn FullMaterial + 'static, Global>
[src]
&mut self,
index: M
) -> &mut Box<dyn FullMaterial + 'static, Global>
Auto Trait Implementations
impl<M = MaterialRef> !RefUnwindSafe for MaterialPool<M>
impl<M = MaterialRef> !Send for MaterialPool<M>
impl<M = MaterialRef> !Sync for MaterialPool<M>
impl<M> Unpin for MaterialPool<M> where
M: Unpin,
M: Unpin,
impl<M = MaterialRef> !UnwindSafe for MaterialPool<M>
Blanket Implementations
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
[src]
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
[src]pub fn to_subset(&self) -> Option<SS>
[src]
pub fn is_in_subset(&self) -> bool
[src]
pub fn to_subset_unchecked(&self) -> SS
[src]
pub fn from_subset(element: &SS) -> SP
[src]
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
[src]
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
[src]