Struct rin::scene::renderer::MaterialPool[][src]

pub struct MaterialPool<M = MaterialRef> where
    M: Key
{ /* fields omitted */ }

Implementations

impl MaterialPool<MaterialRef>[src]

pub fn new(
    unified_material_ubo: bool,
    world: &mut DeferredScene,
    gl: &Renderer<'_, Screen>
) -> MaterialPool<MaterialRef>
[src]

impl MaterialPool<ShadowMaterialRef>[src]

pub fn new_shadows(
    unified_material_ubo: bool,
    world: &mut DeferredScene,
    gl: &Renderer<'_, Screen>
) -> MaterialPool<ShadowMaterialRef>
[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]

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]

pub fn named_materials<F>(&self) -> impl Iterator<Item = (String, &F)> where
    F: FullMaterial
[src]

pub fn iter<F>(&self) -> impl Iterator<Item = (M, &F)> where
    F: FullMaterial
[src]

pub fn named_iter<F>(&self) -> impl Iterator<Item = (String, M, &F)> where
    F: FullMaterial
[src]

pub fn materials_mut<F>(&mut self) -> impl Iterator<Item = &mut F> where
    F: FullMaterial
[src]

pub fn named_materials_mut<F>(
    &mut self
) -> impl Iterator<Item = (String, &mut F)> where
    F: FullMaterial
[src]

pub fn iter_mut<F>(&mut self) -> impl Iterator<Item = (M, &mut F)> where
    F: FullMaterial
[src]

pub fn named_iter_mut<F>(&mut self) -> impl Iterator<Item = (String, M, &mut F)> where
    F: FullMaterial
[src]

pub fn material<F>(&self, materialref: M) -> Option<&F> where
    F: FullMaterial
[src]

pub fn material_mut<F>(&mut self, materialref: M) -> Option<&mut F> where
    F: FullMaterial
[src]

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]

pub fn unused<'a, E>(&self, entities: &E) -> Vec<MaterialRef, Global>

Notable traits for Vec<u8, A>

impl<A> Write for Vec<u8, A> where
    A: Allocator
where
    E: EntitiesExt<'a>, 
[src]

pub fn remove_unused<'a, E>(&mut self, entities: &E) where
    E: EntitiesExt<'a>, 
[src]

Trait Implementations

impl<M> Index<M> for MaterialPool<M> where
    M: Key
[src]

type Output = Box<dyn FullMaterial + 'static, Global>

The returned type after indexing.

impl<M> IndexMut<M> for MaterialPool<M> where
    M: Key
[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

impl<M = MaterialRef> !UnwindSafe for MaterialPool<M>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Any for T where
    T: Any
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Downcast for T where
    T: Any
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<V> IntoPnt<V> for V[src]

impl<V> IntoVec<V> for V[src]

impl<T> Pointable for T[src]

type Init = T

The type for initializers.

impl<T> Same<T> for T[src]

type Output = T

Should always be Self

impl<SS, SP> SupersetOf<SS> for SP where
    SS: SubsetOf<SP>, 
[src]

impl<SS, SP> SupersetOf<SS> for SP where
    SS: SubsetOf<SP>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]