#[repr(C)]pub struct Vertex {
pub position: Vec3,
pub uv: Vec2,
pub color: [u8; 4],
pub normal: Vec4,
}
Fields§
§position: Vec3
§uv: Vec2
§color: [u8; 4]
§normal: Vec4
Normal is not used by macroquad and is completely optional. Might be usefull for custom shaders. While normal is not used by macroquad, it is completely safe to use it to pass arbitary user data, hence Vec4.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Vertex
impl RefUnwindSafe for Vertex
impl Send for Vertex
impl Sync for Vertex
impl Unpin 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