Struct oxygengine_prototype::resources::renderables::MeshRenderable
source · pub struct MeshRenderable {
pub transform: Transform2d,
pub mesh: HaMeshInstance,
pub material: HaMaterialInstance,
}
Fields§
§transform: Transform2d
§mesh: HaMeshInstance
§material: HaMaterialInstance
Implementations§
source§impl MeshRenderable
impl MeshRenderable
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 MeshRenderable
impl Clone for MeshRenderable
source§fn clone(&self) -> MeshRenderable
fn clone(&self) -> MeshRenderable
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 MeshRenderable
impl Debug for MeshRenderable
source§impl Default for MeshRenderable
impl Default for MeshRenderable
source§fn default() -> MeshRenderable
fn default() -> MeshRenderable
Returns the “default value” for a type. Read more
source§impl From<MeshRenderable> for Renderable
impl From<MeshRenderable> for Renderable
source§fn from(other: MeshRenderable) -> Self
fn from(other: MeshRenderable) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl RefUnwindSafe for MeshRenderable
impl Send for MeshRenderable
impl Sync for MeshRenderable
impl Unpin for MeshRenderable
impl UnwindSafe for MeshRenderable
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