pub struct Mesh { /* private fields */ }Expand description
Owned GPU mesh handle.
Implementations§
Source§impl Mesh
impl Mesh
Sourcepub fn seq(&self) -> i64
pub fn seq(&self) -> i64
Monotonic sequence number suitable for DrawOptions::order.
Sourcepub fn set_texture(
&self,
res: &mut Resources<'_>,
slot: u32,
texture: Option<&Texture>,
) -> Result<()>
pub fn set_texture( &self, res: &mut Resources<'_>, slot: u32, texture: Option<&Texture>, ) -> Result<()>
Binds or clears a texture at slot on this mesh.
Sourcepub fn set_sampler(
&self,
res: &mut Resources<'_>,
slot: u32,
sampler: SamplerState,
) -> Result<()>
pub fn set_sampler( &self, res: &mut Resources<'_>, slot: u32, sampler: SamplerState, ) -> Result<()>
Overrides the sampler state at slot on this mesh.
Sourcepub fn set_paint(
&self,
res: &mut Resources<'_>,
paint: &PaintAttributes,
) -> Result<()>
pub fn set_paint( &self, res: &mut Resources<'_>, paint: &PaintAttributes, ) -> Result<()>
Updates paint attributes on this mesh after paint property changes.
Sourcepub fn bind_vertices(
&self,
res: &mut Resources<'_>,
binding: &VertexBinding<'_>,
) -> Result<()>
pub fn bind_vertices( &self, res: &mut Resources<'_>, binding: &VertexBinding<'_>, ) -> Result<()>
Rebinds a vertex stream on this mesh.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Mesh
impl !Send for Mesh
impl !Sync for Mesh
impl !UnwindSafe for Mesh
impl Forget for Mesh
impl Freeze for Mesh
impl Move for Mesh
impl Unpin for Mesh
impl UnsafeUnpin for Mesh
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more