Struct solstice::mesh::MappedVertexMesh
source · pub struct MappedVertexMesh<V> { /* private fields */ }
Implementations§
source§impl<V> MappedVertexMesh<V>where
V: Vertex,
impl<V> MappedVertexMesh<V>where V: Vertex,
pub fn new(ctx: &mut Context, size: usize) -> Result<Self, GraphicsError>
pub fn set_vertices(&mut self, vertices: &[V], offset: usize)
pub fn get_vertices(&self) -> &[V] ⓘ
pub fn unmap(&mut self, ctx: &mut Context) -> &VertexMesh<V>
pub fn inner(&self) -> &VertexMesh<V>
Trait Implementations§
source§impl<V: Debug> Debug for MappedVertexMesh<V>
impl<V: Debug> Debug for MappedVertexMesh<V>
source§impl<V: PartialEq> PartialEq<MappedVertexMesh<V>> for MappedVertexMesh<V>
impl<V: PartialEq> PartialEq<MappedVertexMesh<V>> for MappedVertexMesh<V>
source§fn eq(&self, other: &MappedVertexMesh<V>) -> bool
fn eq(&self, other: &MappedVertexMesh<V>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.