Trait rin::gl::material::Material[][src]

pub trait Material {
    pub fn program<R>(&self, renderer: &Renderer<'_, R>) -> &Program
    where
        R: RenderSurface
;
pub fn uniforms<R>(&self, renderer: &Renderer<'_, R>) -> &[Uniform]

Notable traits for &'_ mut [u8]

impl<'_> Write for &'_ mut [u8]impl<'_> Read for &'_ [u8]

    where
        R: RenderSurface
;
pub fn properties(&self) -> &[Property]

Notable traits for &'_ mut [u8]

impl<'_> Write for &'_ mut [u8]impl<'_> Read for &'_ [u8]
; }

Common trait to all materials

The methods in this trait are usually only used internally by rin or other renderers to set the correct gl state to draw using the corresponding material

Required methods

pub fn program<R>(&self, renderer: &Renderer<'_, R>) -> &Program where
    R: RenderSurface
[src]

returns the material glsl program

pub fn uniforms<R>(&self, renderer: &Renderer<'_, R>) -> &[Uniform]

Notable traits for &'_ mut [u8]

impl<'_> Write for &'_ mut [u8]impl<'_> Read for &'_ [u8]
where
    R: RenderSurface
[src]

returns the uniforms to set when using the material glsl program

pub fn properties(&self) -> &[Property]

Notable traits for &'_ mut [u8]

impl<'_> Write for &'_ mut [u8]impl<'_> Read for &'_ [u8]
[src]

returns the gl properties to use when using this material

Loading content...

Implementations on Foreign Types

impl<'a, M> Material for &'a M where
    M: Material + ?Sized
[src]

impl<M> Material for Box<M, Global> where
    M: Material + ?Sized
[src]

impl<M> Material for Rc<M> where
    M: Material + ?Sized
[src]

Loading content...

Implementors

impl Material for OutlineMaterial[src]

impl Material for Program[src]

impl Material for rin::gl::ttf::Material[src]

impl<'a> Material for rin::gl::cubemap::Material<'a>[src]

impl<P> Material for ShaderMaterial<P> where
    P: Borrow<Program>, 
[src]

impl<T> Material for BasicMaterial<T> where
    T: TextureUniformValue
[src]

Loading content...