Trait rin_scene::renderer::FullMaterial[][src]

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

Required methods

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

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

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

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

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

fn full_reset_changed(&mut self)[src]

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

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

Loading content...

Implementations

impl dyn FullMaterial[src]

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

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

pub fn downcast<__T: FullMaterial>(
    self: Box<Self>
) -> Result<Box<__T>, Box<Self>>
[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: FullMaterial>(
    self: Rc<Self>
) -> Result<Rc<__T>, Rc<Self>>
[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: FullMaterial>(&self) -> Option<&__T>[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: FullMaterial>(&mut self) -> Option<&mut __T>[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: Material + 'static> FullMaterial for PostFragmentMaterial<M>[src]

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

Loading content...