Struct gfx::render::batch::Core [] [src]

pub struct Core<T: ShaderParam> {
    // some fields omitted
}

Core batch - a minimal sealed batch.

Methods

impl<T: ShaderParam> Core<T>
[src]

fn new(mesh: Mesh<T::Resources>, program: ProgramHandle<T::Resources>) -> Result<Core<T>, Error>

Create a new core batch.

fn with<'a>(&'a self, slice: &'a Slice<T::Resources>, params: &'a T, state: &'a DrawState) -> Complete<'a, T>

Add missing components to complete the batch for rendering.

fn program(&self) -> &ProgramHandle<T::Resources>

Read the ProgramHandle

fn mesh(&self) -> &Mesh<T::Resources>

Read the Mesh

Trait Implementations

impl<T: Clone + ShaderParam> Clone for Core<T> where T::Resources: Clone, T::Link: Clone
[src]

fn clone(&self) -> Core<T>

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)
1.0.0

Performs copy-assignment from source. Read more