Trait rin::gl::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]ⓘ
where
R: RenderSurface; pub fn properties(&self) -> &[Property]ⓘ; }
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]
R: RenderSurface,
returns the material glsl program
pub fn uniforms<R>(&self, renderer: &Renderer<'_, R>) -> &[Uniform]ⓘ where
R: RenderSurface,
[src]
R: RenderSurface,
returns the uniforms to set when using the material glsl program
pub fn properties(&self) -> &[Property]ⓘ
[src]
returns the gl properties to use when using this material
Implementations on Foreign Types
impl<'a, M> Material for &'a M where
M: Material + ?Sized,
[src]
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 Box<M, Global> where
M: Material + ?Sized,
[src]impl<M> Material for Rc<M> where
M: Material + ?Sized,
[src]
impl<M> Material for Rc<M> where
M: Material + ?Sized,
[src]Implementors
impl Material for OutlineMaterial
[src]
impl Material for OutlineMaterial
[src]impl Material for Program
[src]
impl Material for Program
[src]impl Material for rin::gl::ttf::Material
[src]
impl Material for rin::gl::ttf::Material
[src]impl<'a> Material for rin::gl::cubemap::Material<'a>
[src]
impl<'a> Material for rin::gl::cubemap::Material<'a>
[src]impl<P> Material for ShaderMaterial<P> where
P: Borrow<Program>,
[src]
impl<P> Material for ShaderMaterial<P> where
P: Borrow<Program>,
[src]impl<T> Material for BasicMaterial<T> where
T: TextureUniformValue,
[src]
impl<T> Material for BasicMaterial<T> where
T: TextureUniformValue,
[src]