[][src]Trait ggraphics::DrawCall

pub trait DrawCall {
    fn add(&mut self, quad: QuadData);
fn clear(&mut self);
unsafe fn draw(&mut self, gl: &Context); }

Trait for a draw call...

Required methods

fn add(&mut self, quad: QuadData)

Add a new instance to the quad data. Instances are cached between draw() invocations.

fn clear(&mut self)

Empty all instances out of the instance buffer.

unsafe fn draw(&mut self, gl: &Context)

fdjsal

Loading content...

Implementors

impl DrawCall for MeshDrawCall[src]

fn add(&mut self, quad: QuadData)[src]

TODO: Refactor

fn clear(&mut self)[src]

TODO: Refactor

unsafe fn draw(&mut self, gl: &Context)[src]

TODO: Refactor

impl DrawCall for QuadDrawCall[src]

fn add(&mut self, quad: QuadData)[src]

TODO: Refactor

fn clear(&mut self)[src]

TODO: Refactor

unsafe fn draw(&mut self, gl: &Context)[src]

TODO: Refactor

Loading content...