Struct cgl_rs::graphics::MeshVertex
source · #[repr(C)]pub struct MeshVertex {
pub position: Vector4,
pub normal: Vector4,
pub texture_coordinates: Vector4,
pub bone_weights: Vector4,
pub bone_ids: IVector4,
}
Expand description
The Mesh Vertex Structure
Fields§
§position: Vector4
§normal: Vector4
§texture_coordinates: Vector4
§bone_weights: Vector4
§bone_ids: IVector4
Implementations§
source§impl MeshVertex
impl MeshVertex
sourcepub fn new() -> MeshVertex
pub fn new() -> MeshVertex
Creates a new MeshVertex
object with default values.
Examples
let vertex = cgl_rs::graphics::MeshVertex::new();
Trait Implementations§
source§impl Clone for MeshVertex
impl Clone for MeshVertex
source§fn clone(&self) -> MeshVertex
fn clone(&self) -> MeshVertex
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreimpl Copy for MeshVertex
Auto Trait Implementations§
impl RefUnwindSafe for MeshVertex
impl Send for MeshVertex
impl Sync for MeshVertex
impl Unpin for MeshVertex
impl UnwindSafe for MeshVertex
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