GUInity
|
#include <MeshComponent.hpp>
Public Member Functions | |
MeshComponent () | |
virtual | ~MeshComponent () |
void | setMesh (shared_ptr< Mesh > mesh) |
shared_ptr< Mesh > | getMesh () |
void | getBoxSize (shared_ptr< Actor > actor, PxVec3 &boxSize, PxVec3 ¢er) |
void | getSphereSize (shared_ptr< Actor > actor, float &radius, PxVec3 ¢er) |
void | getCapsuleGeometry (shared_ptr< Actor >actor, float &radius, float &halfHeight, RotateAxis &orientation, PxVec3 ¢er) |
virtual shared_ptr< Component > | clone ()=0 |
virtual shared_ptr< ComponentDescription > | getComponentDescription () override |
virtual void | deserialize (shared_ptr< ComponentDescription > desc) override |
![]() | |
Component () | |
virtual | ~Component () |
virtual void | init () |
virtual void | destroy () |
virtual void | setActive (bool isActive) |
virtual void | awake () |
virtual void | tick (float deltaSecods) |
shared_ptr< Actor > | getActor () |
void | setActor (weak_ptr< Actor > actor) |
Protected Attributes | |
shared_ptr< Mesh > | mesh |
![]() | |
bool | initWithData |
bool | isActive |
Additional Inherited Members | |
![]() | |
void | setCopyMode (bool initWithData) |
MeshComponent is a Component makes a reference to a Mesh asset. This is important to prevent the same Mesh to live multiple times in memory. This class is inherited used by MeshFilter and FontMesh
MeshComponent::MeshComponent | ( | ) |
Default Constructor
|
virtual |
Default Destructor. Virtual because this is a parent class
|
pure virtual |
Pure virtual function. Clones current component (Prototype Design Pattern)
Implements Component.
Implemented in FontMesh, and MeshFilter.
void MeshComponent::getBoxSize | ( | shared_ptr< Actor > | actor, |
PxVec3 & | boxSize, | ||
PxVec3 & | center | ||
) |
Gets the center and the AABB size for the Actor that this component is attached to
void MeshComponent::getCapsuleGeometry | ( | shared_ptr< Actor > | actor, |
float & | radius, | ||
float & | halfHeight, | ||
RotateAxis & | orientation, | ||
PxVec3 & | center | ||
) |
Gets the center and the capsule description for the Actor that this component is attached to
shared_ptr< Mesh > MeshComponent::getMesh | ( | ) |
mesh Setter
mesh Getter
void MeshComponent::getSphereSize | ( | shared_ptr< Actor > | actor, |
float & | radius, | ||
PxVec3 & | center | ||
) |
Gets the center and the radius for the Actor that this component is attached to
void MeshComponent::setMesh | ( | shared_ptr< Mesh > | mesh | ) |
mesh Getter
mesh Setter