Struct rin_scene::renderer::MaterialPool [−][src]
pub struct MaterialPool<M: Key = MaterialRef> { /* fields omitted */ }
Implementations
impl MaterialPool<MaterialRef>
[src]
impl MaterialPool<MaterialRef>
[src]pub fn new(
unified_material_ubo: bool,
world: &mut DeferredScene,
gl: &Renderer<'_>
) -> MaterialPool<MaterialRef>
[src]
unified_material_ubo: bool,
world: &mut DeferredScene,
gl: &Renderer<'_>
) -> MaterialPool<MaterialRef>
impl MaterialPool<ShadowMaterialRef>
[src]
impl MaterialPool<ShadowMaterialRef>
[src]pub fn new_shadows(
unified_material_ubo: bool,
world: &mut DeferredScene,
gl: &Renderer<'_>
) -> MaterialPool<ShadowMaterialRef>
[src]
unified_material_ubo: bool,
world: &mut DeferredScene,
gl: &Renderer<'_>
) -> MaterialPool<ShadowMaterialRef>
impl<M: Key + Copy + 'static> MaterialPool<M>
[src]
impl<M: Key + Copy + 'static> MaterialPool<M>
[src]pub fn register_material<F: FullMaterial + 'static>(
&mut self,
name: &str,
material: F
) -> M
[src]
&mut self,
name: &str,
material: F
) -> M
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: FullMaterial>(&self) -> impl Iterator<Item = &F>
[src]
pub fn named_materials<F: FullMaterial>(
&self
) -> impl Iterator<Item = (String, &F)>
[src]
&self
) -> impl Iterator<Item = (String, &F)>
pub fn iter<F: FullMaterial>(&self) -> impl Iterator<Item = (M, &F)>
[src]
pub fn named_iter<F: FullMaterial>(
&self
) -> impl Iterator<Item = (String, M, &F)>
[src]
&self
) -> impl Iterator<Item = (String, M, &F)>
pub fn materials_mut<F: FullMaterial>(&mut self) -> impl Iterator<Item = &mut F>
[src]
pub fn named_materials_mut<F: FullMaterial>(
&mut self
) -> impl Iterator<Item = (String, &mut F)>
[src]
&mut self
) -> impl Iterator<Item = (String, &mut F)>
pub fn iter_mut<F: FullMaterial>(&mut self) -> impl Iterator<Item = (M, &mut F)>
[src]
pub fn named_iter_mut<F: FullMaterial>(
&mut self
) -> impl Iterator<Item = (String, M, &mut F)>
[src]
&mut self
) -> impl Iterator<Item = (String, M, &mut F)>
pub fn material<F: FullMaterial>(&self, materialref: M) -> Option<&F>
[src]
pub fn material_mut<F: FullMaterial>(
&mut self,
materialref: M
) -> Option<&mut F>
[src]
&mut self,
materialref: M
) -> Option<&mut F>
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: EntitiesExt<'a>>(&self, entities: &E) -> Vec<MaterialRef>
[src]
pub fn remove_unused<'a, E: EntitiesExt<'a>>(&mut self, entities: &E)
[src]
Trait Implementations
impl<M: Key> Index<M> for MaterialPool<M>
[src]
impl<M: Key> Index<M> for MaterialPool<M>
[src]type Output = Box<dyn FullMaterial>
The returned type after indexing.
fn index(&self, index: M) -> &Box<dyn FullMaterial>
[src]
impl<M: Key> IndexMut<M> for MaterialPool<M>
[src]
impl<M: Key> IndexMut<M> for MaterialPool<M>
[src]fn index_mut(&mut self, index: M) -> &mut Box<dyn FullMaterial>
[src]
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]