[−][src]Struct ggraphics::MeshPipeline
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]
&mut self,
ctx: &mut GlContext,
texture: Texture,
sampler: SamplerSpec
) -> &mut dyn DrawCall
foo
fn clear(&mut self)
[src]
fn get(&self, idx: usize) -> &dyn DrawCall
[src]
fn get_mut(&mut self, idx: usize) -> &mut dyn DrawCall
[src]
fn drawcalls<'a>(&'a self) -> Box<dyn Iterator<Item = &'a dyn DrawCall> + 'a>
[src]
fn drawcalls_mut<'a>(
&'a mut self
) -> Box<dyn Iterator<Item = &'a mut dyn DrawCall> + 'a>
[src]
&'a mut self
) -> Box<dyn Iterator<Item = &'a mut dyn DrawCall> + 'a>
Auto Trait Implementations
impl !Send for MeshPipeline
impl !Sync for MeshPipeline
impl Unpin for MeshPipeline
impl !UnwindSafe for MeshPipeline
impl !RefUnwindSafe for MeshPipeline
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = !
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,