Trait rin::scene::renderer::FullMaterial[][src]

pub trait FullMaterial: Material + Downcast {
    pub fn post_fragment(&self) -> PropertyChanged<Option<&PostFragment>>;
pub fn full_uniforms(&mut self) -> PropertyChanged<Vec<Uniform, Global>>;
pub fn full_textures(
        &self,
        textures_pool: &TexturesPool,
        texture_offset: &mut u32
    ) -> PropertyChanged<(Vec<Uniform, Global>, u64)>;
pub fn full_cubemaps(
        &self,
        textures_pool: &TexturesPool,
        texture_offset: &mut u32
    ) -> PropertyChanged<(Vec<Uniform, Global>, u64)>;
pub fn full_renderplanes(
        &self,
        entities: &EntitiesThreadLocal<'_>,
        texture_offset: u32
    ) -> PropertyChanged<Option<(Vec<Uniform, Global>, u64)>>;
pub fn full_reset_changed(&mut self);
pub fn material(&self) -> &dyn Material;
pub fn material_mut(&mut self) -> &mut dyn Material; }

Required methods

pub fn post_fragment(&self) -> PropertyChanged<Option<&PostFragment>>[src]

pub fn full_uniforms(&mut self) -> PropertyChanged<Vec<Uniform, Global>>[src]

pub fn full_textures(
    &self,
    textures_pool: &TexturesPool,
    texture_offset: &mut u32
) -> PropertyChanged<(Vec<Uniform, Global>, u64)>
[src]

pub fn full_cubemaps(
    &self,
    textures_pool: &TexturesPool,
    texture_offset: &mut u32
) -> PropertyChanged<(Vec<Uniform, Global>, u64)>
[src]

pub fn full_renderplanes(
    &self,
    entities: &EntitiesThreadLocal<'_>,
    texture_offset: u32
) -> PropertyChanged<Option<(Vec<Uniform, Global>, u64)>>
[src]

pub fn full_reset_changed(&mut self)[src]

pub fn material(&self) -> &dyn Material[src]

pub fn material_mut(&mut self) -> &mut dyn Material[src]

Loading content...

Implementations

impl dyn FullMaterial + 'static[src]

pub fn is<__T>(&self) -> bool where
    __T: FullMaterial
[src]

Returns true if the trait object wraps an object of type __T.

pub fn downcast<__T>(
    self: Box<dyn FullMaterial + 'static, Global>
) -> Result<Box<__T, Global>, Box<dyn FullMaterial + 'static, Global>> where
    __T: FullMaterial
[src]

Returns a boxed object from a boxed trait object if the underlying object is of type __T. Returns the original boxed trait if it isn’t.

pub fn downcast_rc<__T>(
    self: Rc<dyn FullMaterial + 'static>
) -> Result<Rc<__T>, Rc<dyn FullMaterial + 'static>> where
    __T: FullMaterial
[src]

Returns an Rc-ed object from an Rc-ed trait object if the underlying object is of type __T. Returns the original Rc-ed trait if it isn’t.

pub fn downcast_ref<__T>(&self) -> Option<&__T> where
    __T: FullMaterial
[src]

Returns a reference to the object within the trait object if it is of type __T, or None if it isn’t.

pub fn downcast_mut<__T>(&mut self) -> Option<&mut __T> where
    __T: FullMaterial
[src]

Returns a mutable reference to the object within the trait object if it is of type __T, or None if it isn’t.

Implementors

impl<M> FullMaterial for PostFragmentMaterial<M> where
    M: 'static + Material
[src]

impl<M> FullMaterial for M where
    M: 'static + Material
[src]

Loading content...