Struct lyon_tessellation::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() -> Self
[src]
pub fn new() -> Self
Constructor
pub fn with_capacity(num_vertices: usize, num_indices: usize) -> Self
[src]
pub fn with_capacity(num_vertices: usize, num_indices: usize) -> Self
Constructor
Trait Implementations
impl<VertexType: Clone, IndexType: Clone> Clone for VertexBuffers<VertexType, IndexType>
[src]
impl<VertexType: Clone, IndexType: Clone> Clone for VertexBuffers<VertexType, IndexType>
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: Debug, IndexType: Debug> Debug for VertexBuffers<VertexType, IndexType>
[src]
impl<VertexType: Debug, IndexType: Debug> Debug for VertexBuffers<VertexType, IndexType>
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl<VertexType: Default, IndexType: Default> Default for VertexBuffers<VertexType, IndexType>
[src]
impl<VertexType: Default, IndexType: Default> Default for VertexBuffers<VertexType, IndexType>
fn default() -> VertexBuffers<VertexType, IndexType>
[src]
fn default() -> VertexBuffers<VertexType, IndexType>
Returns the "default value" for a type. Read more
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,