Trait rin::prelude::Renderer3d [−][src]
pub trait Renderer3d { pub fn draw<R>(&self, obj: &R)
where
R: Render3d; pub fn draw_with_material<V, M>(&self, obj: &Object<V>, material: &M)
where
M: Material,
&'a V: for<'a> VaoDraw; pub fn draw_vao_with_material<V, M>(&self, vao: V, material: &M)
where
V: VaoDraw,
M: Material; pub fn draw_vao_with_model_material<V, M, MO>(
&self,
vao: V,
model: MO,
material: &M
)
where
V: VaoDraw,
M: Material,
MO: Into<Model>; pub fn draw_vao<'a, V, U>(
&self,
vao_range: V,
program: &Program,
uniforms: U
)
where
V: VaoDraw,
U: IntoIterator<Item = &'a Uniform>; pub fn draw_vao_with_model<'a, V, M, U>(
&self,
vao_range: V,
model: M,
program: &Program,
uniforms: U
)
where
V: VaoDraw,
M: Into<Model>,
U: IntoIterator<Item = &'a Uniform>; pub fn draw_instanced_vao_with_material<V, M>(
&self,
obj: V,
num_instances: usize,
material: &M
)
where
V: VaoDraw,
M: Material; pub fn draw_instanced_vao<'a, V, U>(
&self,
vao_range: V,
num_instances: usize,
program: &Program,
uniforms: U
)
where
V: VaoDraw,
U: IntoIterator<Item = &'a Uniform>; }
Required methods
pub fn draw<R>(&self, obj: &R) where
R: Render3d,
[src]
R: Render3d,
Draw a Render3d
pub fn draw_with_material<V, M>(&self, obj: &Object<V>, material: &M) where
M: Material,
&'a V: for<'a> VaoDraw,
[src]
M: Material,
&'a V: for<'a> VaoDraw,
Draw a Render3d with the passed material
pub fn draw_vao_with_material<V, M>(&self, vao: V, material: &M) where
V: VaoDraw,
M: Material,
[src]
V: VaoDraw,
M: Material,
Draw a VAO with the passed material
pub fn draw_vao_with_model_material<V, M, MO>(
&self,
vao: V,
model: MO,
material: &M
) where
V: VaoDraw,
M: Material,
MO: Into<Model>,
[src]
&self,
vao: V,
model: MO,
material: &M
) where
V: VaoDraw,
M: Material,
MO: Into<Model>,
Draw a VAO with the passed material and Into
model matrix
pub fn draw_vao<'a, V, U>(&self, vao_range: V, program: &Program, uniforms: U) where
V: VaoDraw,
U: IntoIterator<Item = &'a Uniform>,
[src]
V: VaoDraw,
U: IntoIterator<Item = &'a Uniform>,
Draw a VAO with the passed program and uniforms
pub fn draw_vao_with_model<'a, V, M, U>(
&self,
vao_range: V,
model: M,
program: &Program,
uniforms: U
) where
V: VaoDraw,
M: Into<Model>,
U: IntoIterator<Item = &'a Uniform>,
[src]
&self,
vao_range: V,
model: M,
program: &Program,
uniforms: U
) where
V: VaoDraw,
M: Into<Model>,
U: IntoIterator<Item = &'a Uniform>,
Draw a VAO with the passed Into
model matrix, program and uniforms
pub fn draw_instanced_vao_with_material<V, M>(
&self,
obj: V,
num_instances: usize,
material: &M
) where
V: VaoDraw,
M: Material,
[src]
&self,
obj: V,
num_instances: usize,
material: &M
) where
V: VaoDraw,
M: Material,
Draw several instances of the passed VAO with the passed materlal
pub fn draw_instanced_vao<'a, V, U>(
&self,
vao_range: V,
num_instances: usize,
program: &Program,
uniforms: U
) where
V: VaoDraw,
U: IntoIterator<Item = &'a Uniform>,
[src]
&self,
vao_range: V,
num_instances: usize,
program: &Program,
uniforms: U
) where
V: VaoDraw,
U: IntoIterator<Item = &'a Uniform>,
Draw several instances of the passed VAO with the passed program and uniforms
Implementors
impl<'c, R> Renderer3d for Renderer<'c, R> where
R: 'c + RenderSurface,
[src]
impl<'c, R> Renderer3d for Renderer<'c, R> where
R: 'c + RenderSurface,
[src]pub fn draw<O>(&self, obj: &O) where
O: Render3d,
[src]
O: Render3d,
pub fn draw_with_material<V, M>(&self, obj: &Object<V>, material: &M) where
M: Material,
&'a V: for<'a> VaoDraw,
[src]
M: Material,
&'a V: for<'a> VaoDraw,
pub fn draw_vao_with_material<V, M>(&self, vao: V, material: &M) where
V: VaoDraw,
M: Material,
[src]
V: VaoDraw,
M: Material,
pub fn draw_vao_with_model_material<V, M, MO>(
&self,
vao: V,
model: MO,
material: &M
) where
V: VaoDraw,
M: Material,
MO: Into<Model>,
[src]
&self,
vao: V,
model: MO,
material: &M
) where
V: VaoDraw,
M: Material,
MO: Into<Model>,
pub fn draw_instanced_vao_with_material<V, M>(
&self,
vao: V,
num_instances: usize,
material: &M
) where
V: VaoDraw,
M: Material,
[src]
&self,
vao: V,
num_instances: usize,
material: &M
) where
V: VaoDraw,
M: Material,
pub fn draw_vao_with_model<'a, V, M, U>(
&self,
vao_range: V,
model: M,
program: &Program,
uniforms: U
) where
V: VaoDraw,
M: Into<Model>,
U: IntoIterator<Item = &'a Uniform>,
[src]
&self,
vao_range: V,
model: M,
program: &Program,
uniforms: U
) where
V: VaoDraw,
M: Into<Model>,
U: IntoIterator<Item = &'a Uniform>,
pub fn draw_vao<'a, V, U>(&self, vao_range: V, program: &Program, uniforms: U) where
V: VaoDraw,
U: IntoIterator<Item = &'a Uniform>,
[src]
V: VaoDraw,
U: IntoIterator<Item = &'a Uniform>,
pub fn draw_instanced_vao<'a, V, U>(
&self,
vao_range: V,
num_instances: usize,
program: &Program,
uniforms: U
) where
V: VaoDraw,
U: IntoIterator<Item = &'a Uniform>,
[src]
&self,
vao_range: V,
num_instances: usize,
program: &Program,
uniforms: U
) where
V: VaoDraw,
U: IntoIterator<Item = &'a Uniform>,