Struct gfx::Slice
[−]
[src]
pub struct Slice<R: Resources> { pub start: VertexCount, pub end: VertexCount, pub instances: InstanceOption, pub kind: SliceKind<R>, }
Description of a subset of Mesh
data to render.
Only vertices between start
and end
are rendered. The
source of the vertex data is dependent on the kind
value.
The primitive
defines how the mesh contents are interpreted.
For example, Point
typed vertex slice can be used to do shape
blending, while still rendereing it as an indexed TriangleList
.
Fields
start: VertexCount
Start index of vertices to draw.
end: VertexCount
End index of vertices to draw.
instances: InstanceOption
Instancing configuration.
kind: SliceKind<R>
Source of the vertex ordering when drawing.
Methods
impl<R: Resources> Slice<R>
[src]
fn get_prim_count(&self, prim: Primitive) -> u32
Get the number of primitives in this slice.
Trait Implementations
impl<R: PartialEq + Resources> PartialEq for Slice<R>
[src]
fn eq(&self, __arg_0: &Slice<R>) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Slice<R>) -> bool
This method tests for !=
.
impl<R: Debug + Resources> Debug for Slice<R>
[src]
impl<R: Clone + Resources> Clone for Slice<R>
[src]
fn clone(&self) -> Slice<R>
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