Struct lyon::tessellation::geometry_builder::VertexBuffers [−][src]
pub struct VertexBuffers<VertexType, IndexType> { pub vertices: Vec<VertexType>, pub indices: Vec<IndexType>, }
Structure that holds the vertex and index data.
Usually writen into though temporary BuffersBuilder
objects.
Fields
vertices: Vec<VertexType>
indices: Vec<IndexType>
Methods
impl<VertexType, IndexType> VertexBuffers<VertexType, IndexType>
[src]
impl<VertexType, IndexType> VertexBuffers<VertexType, IndexType>
pub fn new() -> VertexBuffers<VertexType, IndexType>
[src]
pub fn new() -> VertexBuffers<VertexType, IndexType>
Constructor
pub fn with_capacity(
num_vertices: usize,
num_indices: usize
) -> VertexBuffers<VertexType, IndexType>
[src]
pub fn with_capacity(
num_vertices: usize,
num_indices: usize
) -> VertexBuffers<VertexType, IndexType>
Constructor
Trait Implementations
impl<VertexType, IndexType> Clone for VertexBuffers<VertexType, IndexType> where
IndexType: Clone,
VertexType: Clone,
[src]
impl<VertexType, IndexType> Clone for VertexBuffers<VertexType, IndexType> where
IndexType: Clone,
VertexType: Clone,
fn clone(&self) -> VertexBuffers<VertexType, IndexType>
[src]
fn clone(&self) -> VertexBuffers<VertexType, IndexType>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl<VertexType, IndexType> Default for VertexBuffers<VertexType, IndexType> where
IndexType: Default,
VertexType: Default,
[src]
impl<VertexType, IndexType> Default for VertexBuffers<VertexType, IndexType> where
IndexType: Default,
VertexType: Default,
fn default() -> VertexBuffers<VertexType, IndexType>
[src]
fn default() -> VertexBuffers<VertexType, IndexType>
Returns the "default value" for a type. Read more
impl<VertexType, IndexType> Debug for VertexBuffers<VertexType, IndexType> where
IndexType: Debug,
VertexType: Debug,
[src]
impl<VertexType, IndexType> Debug for VertexBuffers<VertexType, IndexType> where
IndexType: Debug,
VertexType: Debug,
Auto Trait Implementations
impl<VertexType, IndexType> Send for VertexBuffers<VertexType, IndexType> where
IndexType: Send,
VertexType: Send,
impl<VertexType, IndexType> Send for VertexBuffers<VertexType, IndexType> where
IndexType: Send,
VertexType: Send,
impl<VertexType, IndexType> Sync for VertexBuffers<VertexType, IndexType> where
IndexType: Sync,
VertexType: Sync,
impl<VertexType, IndexType> Sync for VertexBuffers<VertexType, IndexType> where
IndexType: Sync,
VertexType: Sync,