Trait rin_gl::renderer::Renderer3d [−][src]
pub trait Renderer3d { fn draw<R: Render3d>(&self, obj: &R); fn draw_with_material<V, M>(&self, obj: &Object<V>, material: &M)
where
&'a V: VaoDraw,
M: Material; fn draw_vao_with_material<V, M>(&self, vao: V, material: &M)
where
V: VaoDraw,
M: Material; fn draw_vao_with_model_material<V, M, MO>(
&self,
vao: V,
model: MO,
material: &M
)
where
V: VaoDraw,
M: Material,
MO: Into<Model>; fn draw_vao<'a, V, U>(&self, vao_range: V, program: &Program, uniforms: U)
where
V: VaoDraw,
U: IntoIterator<Item = &'a Uniform>; fn draw_vao_with_model<'a, V, M, U>(
&self,
vao_range: V,
model: M,
program: &Program,
uniforms: U
)
where
V: VaoDraw,
U: IntoIterator<Item = &'a Uniform>,
M: Into<Model>; fn draw_instanced_vao_with_material<V, M>(
&self,
obj: V,
num_instances: usize,
material: &M
)
where
V: VaoDraw,
M: Material; 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
fn draw<R: Render3d>(&self, obj: &R)
[src]
Draw a Render3d
fn draw_with_material<V, M>(&self, obj: &Object<V>, material: &M) where
&'a V: VaoDraw,
M: Material,
[src]
&'a V: VaoDraw,
M: Material,
Draw a Render3d with the passed material
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
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
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
fn draw_vao_with_model<'a, V, M, U>(
&self,
vao_range: V,
model: M,
program: &Program,
uniforms: U
) where
V: VaoDraw,
U: IntoIterator<Item = &'a Uniform>,
M: Into<Model>,
[src]
&self,
vao_range: V,
model: M,
program: &Program,
uniforms: U
) where
V: VaoDraw,
U: IntoIterator<Item = &'a Uniform>,
M: Into<Model>,
Draw a VAO with the passed Into
model matrix, program and uniforms
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
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: RenderSurface + 'c> Renderer3d for Renderer<'c, R>
[src]
impl<'c, R: RenderSurface + 'c> Renderer3d for Renderer<'c, R>
[src]fn draw<O: Render3d>(&self, obj: &O)
[src]
fn draw_with_material<V, M>(&self, obj: &Object<V>, material: &M) where
&'a V: VaoDraw,
M: Material,
[src]
&'a V: VaoDraw,
M: Material,
fn draw_vao_with_material<V, M>(&self, vao: V, material: &M) where
V: VaoDraw,
M: Material,
[src]
V: VaoDraw,
M: Material,
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>,
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,
fn draw_vao_with_model<'a, V, M, U>(
&self,
vao_range: V,
model: M,
program: &Program,
uniforms: U
) where
V: VaoDraw,
U: IntoIterator<Item = &'a Uniform>,
M: Into<Model>,
[src]
&self,
vao_range: V,
model: M,
program: &Program,
uniforms: U
) where
V: VaoDraw,
U: IntoIterator<Item = &'a Uniform>,
M: Into<Model>,
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>,
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>,