Trait rin::gl::renderer::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]

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]

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]

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]

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]

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]

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]

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]

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

Loading content...

Implementors

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

Loading content...