[][src]Struct ggraphics::MeshPipeline

pub struct MeshPipeline {
    pub drawcalls: Vec<MeshDrawCall>,
    pub projection: Mat4,
    // some fields omitted
}

A pipeline for drawing quads.

Fields

drawcalls: Vec<MeshDrawCall>

The draw calls in the pipeline.

projection: Mat4

The projection the pipeline will draw with.

Methods

impl MeshPipeline[src]

pub unsafe fn new(ctx: &GlContext, shader: Shader) -> Self[src]

Create new pipeline with the given shader.

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

Draw all the draw calls in the pipeline.

Trait Implementations

impl Pipeline for MeshPipeline[src]

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

foo TODO: Docs

fn new_drawcall(
    &mut self,
    ctx: &mut GlContext,
    texture: Texture,
    sampler: SamplerSpec
) -> &mut dyn DrawCall
[src]

foo

Auto Trait Implementations

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = !

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]