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]

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]

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]

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]

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]

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]

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]

Draw several instances of the passed VAO with the passed program and uniforms

Loading content...

Implementors

impl<'c, R: RenderSurface + 'c> Renderer3d for Renderer<'c, R>[src]

Loading content...