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

pub struct Full<T: ShaderParam> {
    pub slice: Slice<T::Resources>,
    pub params: T,
    pub state: DrawState,
    // some fields omitted
}

Full batch - contains everything needed for rendering.

Fields

slice: Slice<T::Resources>

Mesh slice

params: T

Parameter data.

state: DrawState

Draw state

Methods

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

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

Create a new full batch

Trait Implementations

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

fn clone(&self) -> Full<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

impl<T: ShaderParam> Batch<T::Resources> for Full<T>
[src]

fn get_data(&self) -> Result<BatchData<T::Resources>, Error>

Obtain information about the mesh, program, and state

fn fill_params(&self, values: &mut ParamStorage<T::Resources>) -> Result<&ProgramHandle<T::Resources>, Error>

Fill shader parameter values