pub struct Vertex { /* private fields */ }Implementations§
Source§impl Vertex
impl Vertex
pub fn position(&self) -> Vector3f
pub fn set_position(&mut self, value: Vector3f)
Sourcepub const fn bone_weights_len() -> usize
pub const fn bone_weights_len() -> usize
Number of elements — a fixed-size C++ array.
Sourcepub fn bone_weights(&self, index: usize) -> u8
pub fn bone_weights(&self, index: usize) -> u8
§Panics
If index >= 4, matching Rust slice indexing.
Sourcepub fn set_bone_weights(&mut self, index: usize, value: u8)
pub fn set_bone_weights(&mut self, index: usize, value: u8)
§Panics
If index >= 4.
Sourcepub const fn bone_indices_len() -> usize
pub const fn bone_indices_len() -> usize
Number of elements — a fixed-size C++ array.
Sourcepub fn bone_indices(&self, index: usize) -> u8
pub fn bone_indices(&self, index: usize) -> u8
§Panics
If index >= 4, matching Rust slice indexing.
Sourcepub fn set_bone_indices(&mut self, index: usize, value: u8)
pub fn set_bone_indices(&mut self, index: usize, value: u8)
§Panics
If index >= 4.
pub fn normal(&self) -> Vector3f
pub fn set_normal(&mut self, value: Vector3f)
Sourcepub const fn tex_coords_len() -> usize
pub const fn tex_coords_len() -> usize
Number of elements — a fixed-size C++ array.
Sourcepub fn tex_coords(&self, index: usize) -> Vector2f
pub fn tex_coords(&self, index: usize) -> Vector2f
§Panics
If index >= 2, matching Rust slice indexing. The
native accessor does no bounds checking of its own, so
this check is what keeps the method safe to call.
Trait Implementations§
impl Send for Vertex
Auto Trait Implementations§
impl !Sync for Vertex
impl Freeze for Vertex
impl RefUnwindSafe for Vertex
impl Unpin for Vertex
impl UnsafeUnpin for Vertex
impl UnwindSafe for Vertex
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