Struct solstice::mesh::MappedIndexedMesh
source · pub struct MappedIndexedMesh<V, I> { /* private fields */ }
Implementations§
source§impl<V, I> MappedIndexedMesh<V, I>where
V: Vertex,
I: Index,
impl<V, I> MappedIndexedMesh<V, I>where V: Vertex, I: Index,
pub fn new( gl: &mut Context, vertex_count: usize, index_count: usize ) -> Result<Self, GraphicsError>
pub fn with_data( ctx: &mut Context, vertices: Vec<V>, indices: Vec<I> ) -> Result<Self, GraphicsError>
pub fn vertex_capacity(&self) -> usize
pub fn index_capacity(&self) -> usize
pub fn set_draw_range(&mut self, draw_range: Option<Range<usize>>)
pub fn draw_range(&self) -> Range<usize>
pub fn set_vertices(&mut self, vertices: &[V], offset: usize)
pub fn get_vertices(&self) -> &[V] ⓘ
pub fn set_indices(&mut self, indices: &[I], offset: usize)
pub fn get_indices(&self) -> &[I] ⓘ
pub fn unmap(&mut self, ctx: &mut Context) -> &IndexedMesh<V, I>
pub fn inner(&self) -> &IndexedMesh<V, I>
Trait Implementations§
source§impl<V: PartialEq, I: PartialEq> PartialEq<MappedIndexedMesh<V, I>> for MappedIndexedMesh<V, I>
impl<V: PartialEq, I: PartialEq> PartialEq<MappedIndexedMesh<V, I>> for MappedIndexedMesh<V, I>
source§fn eq(&self, other: &MappedIndexedMesh<V, I>) -> bool
fn eq(&self, other: &MappedIndexedMesh<V, I>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.