pub struct SkeletalMesh {Show 15 fields
pub vertices: Vec<SkeletalVertex>,
pub indices: Vec<u32>,
pub vao: u32,
pub texture: u32,
pub ebo: u32,
pub vbo: u32,
pub position: Vec3,
pub rotation: Quat,
pub scale: Vec3,
pub color: Vec3,
pub shader: Shader,
pub parent: Option<Box<Mesh>>,
pub children: Vec<Box<Mesh>>,
pub has_been_set_up: bool,
pub hidden: bool,
}
Fields§
§vertices: Vec<SkeletalVertex>
§indices: Vec<u32>
§vao: u32
§texture: u32
§ebo: u32
§vbo: u32
§position: Vec3
§rotation: Quat
§scale: Vec3
§color: Vec3
§shader: Shader
§parent: Option<Box<Mesh>>
§children: Vec<Box<Mesh>>
§has_been_set_up: bool
Implementations§
Source§impl SkeletalMesh
impl SkeletalMesh
pub fn new(vertices: &Vec<SkeletalVertex>, indices: &Vec<u32>) -> Self
pub fn set_texture( &mut self, texture_handle: TextureHandle, renderer: &Renderer, )
pub fn set_color(&mut self, color: Vec3)
pub fn set_position(&mut self, position: Vec3)
pub fn add_position(&mut self, position: Vec3)
pub fn set_scale(&mut self, scale: Vec3)
pub fn scale(&mut self, scale: Vec3)
pub fn set_rotation(&mut self, rotation: Quat)
pub fn rotate(&mut self, rotation: Quat)
pub fn setup_mesh(&mut self)
pub unsafe fn draw(&self, renderer: &Renderer)
Trait Implementations§
Source§impl Clone for SkeletalMesh
impl Clone for SkeletalMesh
Source§fn clone(&self) -> SkeletalMesh
fn clone(&self) -> SkeletalMesh
Returns a duplicate 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 moreSource§impl Debug for SkeletalMesh
impl Debug for SkeletalMesh
Source§impl Drop for SkeletalMesh
impl Drop for SkeletalMesh
Source§impl PartialEq for SkeletalMesh
impl PartialEq for SkeletalMesh
impl StructuralPartialEq for SkeletalMesh
Auto Trait Implementations§
impl Freeze for SkeletalMesh
impl RefUnwindSafe for SkeletalMesh
impl Send for SkeletalMesh
impl Sync for SkeletalMesh
impl Unpin for SkeletalMesh
impl UnwindSafe for SkeletalMesh
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more