pub struct AdvancedRenderable {
pub transform: Transform2d,
pub mesh: HaMeshInstance,
pub material: HaMaterialInstance,
}
Fields§
§transform: Transform2d
§mesh: HaMeshInstance
§material: HaMaterialInstance
Implementations§
source§impl AdvancedRenderable
impl AdvancedRenderable
pub fn transform(self, value: Transform2d) -> Self
pub fn mesh(self, value: HaMeshInstance) -> Self
pub fn material(self, value: HaMaterialInstance) -> Self
Trait Implementations§
source§impl Clone for AdvancedRenderable
impl Clone for AdvancedRenderable
source§fn clone(&self) -> AdvancedRenderable
fn clone(&self) -> AdvancedRenderable
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 moresource§impl Debug for AdvancedRenderable
impl Debug for AdvancedRenderable
source§impl Default for AdvancedRenderable
impl Default for AdvancedRenderable
source§fn default() -> AdvancedRenderable
fn default() -> AdvancedRenderable
Returns the “default value” for a type. Read more
source§impl From<AdvancedRenderable> for Renderable
impl From<AdvancedRenderable> for Renderable
source§fn from(other: AdvancedRenderable) -> Self
fn from(other: AdvancedRenderable) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl RefUnwindSafe for AdvancedRenderable
impl Send for AdvancedRenderable
impl Sync for AdvancedRenderable
impl Unpin for AdvancedRenderable
impl UnwindSafe for AdvancedRenderable
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
§impl<T> Initialize for Twhere
T: Default,
impl<T> Initialize for Twhere T: Default,
fn initialize(&mut self)
§unsafe fn initialize_raw(data: *mut ())
unsafe fn initialize_raw(data: *mut ())
Safety Read more