Struct gfx::render::mesh::Slice
[−]
[src]
pub struct Slice<R: Resources> { pub start: VertexCount, pub end: VertexCount, pub prim_type: PrimitiveType, 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 prim_type
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.
prim_type: PrimitiveType
Primitive type to render collections of vertices as.
kind: SliceKind<R>
Source of the vertex ordering when drawing.
Methods
impl<R: Resources> Slice<R>
[src]
fn get_prim_count(&self) -> 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