#include <MorphSetupInstance.h>
Inherits EMotionFX::BaseObject.
Classes | |
class | MorphTarget |
Public Member Functions | |
void | Init (MorphSetup *morphSetup) |
MCORE_INLINE size_t | GetNumMorphTargets () const |
MCORE_INLINE MorphTarget * | GetMorphTarget (size_t nr) |
MCORE_INLINE const MorphTarget * | GetMorphTarget (size_t nr) const |
size_t | FindMorphTargetIndexByID (uint32 id) const |
MorphTarget * | FindMorphTargetByID (uint32 id) |
Public Member Functions inherited from EMotionFX::BaseObject | |
BaseObject () | |
virtual | ~BaseObject () |
Public Member Functions inherited from MCore::MemoryObject | |
MemoryObject () | |
virtual | ~MemoryObject () |
void | IncreaseReferenceCount () |
void | DecreaseReferenceCount () |
void | Destroy () |
uint32 | GetReferenceCount () const |
Static Public Member Functions | |
static MorphSetupInstance * | Create () |
static MorphSetupInstance * | Create (MorphSetup *morphSetup) |
Additional Inherited Members | |
Protected Member Functions inherited from EMotionFX::BaseObject | |
void | Delete () override |
virtual void | Delete () |
The morph setup instance. This contains all unique information per actor instance, which for example allows each actor instance to have different weight values per morph target, while still the real morph targets are being shared between all actor instances.
|
static |
The default creation method. Be sure to call the Init method later on or use the extended constructor.
|
static |
The extended creation method. This automatically calls the Init method.
MorphTarget * EMotionFX::MorphSetupInstance::FindMorphTargetByID | ( | uint32 | id | ) |
Find the morph target by its ID.
id | The ID value of the morph target to search for. |
size_t EMotionFX::MorphSetupInstance::FindMorphTargetIndexByID | ( | uint32 | id | ) | const |
Find a given morph target number by its ID.
id | The ID value to search for. |
|
inline |
Get a specific morph target.
nr | The morph target number, which must be in range of [0..GetNumMorphTargets()-1]. |
|
inline |
Get the number of morph targets inside this class. This should always be equal to the number of morph targets in the highest detail.
void EMotionFX::MorphSetupInstance::Init | ( | MorphSetup * | morphSetup | ) |
Initialize the morph setup instance and link it to a given morph setup. This will automatically create the morph targets locally stored inside this class.
morphSetup | The morph setup to initialize from. |