[][src]Trait rendology::Drawable

pub trait Drawable<I, V> where
    V: Vertex
{ const INSTANCING_MODE: InstancingMode; fn draw<U, S>(
        &self,
        program: &Program,
        uniforms: &U,
        draw_params: &DrawParameters,
        target: &mut S
    ) -> Result<(), DrawError>
    where
        U: ToUniforms,
        S: Surface
; }

Associated Constants

const INSTANCING_MODE: InstancingMode

The instancing mode supported by this Drawable.

We use this to check that the supplied glium::Program is compatible with the Drawable.

Loading content...

Required methods

fn draw<U, S>(
    &self,
    program: &Program,
    uniforms: &U,
    draw_params: &DrawParameters,
    target: &mut S
) -> Result<(), DrawError> where
    U: ToUniforms,
    S: Surface

Loading content...

Implementors

Loading content...