|
Aeon Engine c550894
AeonGames Open Source Game Engine
|
Component that attaches a 3D model with skeletal animation support to a scene node. More...
#include <C:/Code/AeonEngine/engine/components/ModelComponent.h>


Public Member Functions | |
| ModelComponent () | |
| Default constructor. | |
Overrides | |
| const StringId & | GetId () const final |
| Get the unique identifier for this component type. | |
| size_t | GetPropertyCount () const final |
| Get the number of properties exposed by this component. | |
| const StringId * | GetPropertyInfoArray () const final |
| Get the array of property identifiers. | |
| Property | GetProperty (const StringId &aId) const final |
| Get the value of a property. | |
| void | SetProperty (uint32_t, const Property &aProperty) final |
| Set the value aProperty for the property identified by aId. | |
| void | Update (Node &aNode, double aDelta) final |
| Update the component state. | |
| void | Render (const Node &aNode, Renderer &aRenderer, void *aWindowId) final |
| Render the component. | |
| void | ProcessMessage (Node &aNode, uint32_t aMessageType, const void *aMessageData) final |
| Process an incoming message. | |
Properties | |
| void | SetModel (const ResourceId &aModel) |
| Sets the model resource. | |
| const ResourceId & | GetModel () const noexcept |
| Returns the current model resource identifier. | |
| void | SetActiveAnimation (size_t aActiveAnimation) noexcept |
| Sets the active animation index. | |
| const size_t & | GetActiveAnimation () const noexcept |
| Returns the active animation index. | |
| void | SetStartingFrame (double aAnimationDelta) noexcept |
| Sets the starting frame for the active animation. | |
| const double & | GetStartingFrame () const noexcept |
| Returns the starting frame for the active animation. | |
| Public Member Functions inherited from AeonGames::Component | |
| virtual DLL | ~Component ()=0 |
| Pure virtual destructor. | |
| DLL void | SetProperty (const StringId &aId, const Property &aProperty) |
| Set a property by its StringId identifier. | |
| DLL void | SetProperty (const std::string &aId, const Property &aProperty) |
| Set a property by its string name. | |
Static Public Member Functions | |
| static const StringId & | GetClassId () |
| Returns the class identifier for the ModelComponent. | |
Component that attaches a 3D model with skeletal animation support to a scene node.
Definition at line 29 of file ModelComponent.h.
|
noexcept |
Returns the active animation index.
Definition at line 133 of file ModelComponent.cpp.
|
static |
Returns the class identifier for the ModelComponent.
Definition at line 37 of file ModelComponent.cpp.
|
finalvirtual |
Get the unique identifier for this component type.
Implements AeonGames::Component.
Definition at line 45 of file ModelComponent.cpp.
|
noexcept |
Returns the current model resource identifier.
Definition at line 122 of file ModelComponent.cpp.
Get the value of a property.
| aId | Identifier of the property to retrieve. |
Implements AeonGames::Component.
Definition at line 69 of file ModelComponent.cpp.
|
finalvirtual |
Get the number of properties exposed by this component.
Implements AeonGames::Component.
Definition at line 59 of file ModelComponent.cpp.
|
finalvirtual |
Get the array of property identifiers.
Implements AeonGames::Component.
Definition at line 64 of file ModelComponent.cpp.
|
noexcept |
Returns the starting frame for the active animation.
Definition at line 143 of file ModelComponent.cpp.
|
finalvirtual |
Process an incoming message.
| aNode | Node this component is attached to. |
| aMessageType | Type identifier of the message. |
| aMessageData | Pointer to message-specific data. |
Implements AeonGames::Component.
Definition at line 220 of file ModelComponent.cpp.
|
finalvirtual |
Render the component.
| aNode | Node this component is attached to. |
| aRenderer | Renderer used for drawing. |
| aWindowId | Platform-specific window identifier. |
Implements AeonGames::Component.
Definition at line 192 of file ModelComponent.cpp.
|
noexcept |
Sets the active animation index.
| aActiveAnimation | Zero-based index of the animation to activate. |
Definition at line 127 of file ModelComponent.cpp.
| void AeonGames::ModelComponent::SetModel | ( | const ResourceId & | aModel | ) |
Sets the model resource.
| aModel | Resource identifier of the model. |
Definition at line 116 of file ModelComponent.cpp.
|
finalvirtual |
Set the value aProperty for the property identified by aId.
Implements AeonGames::Component.
Definition at line 83 of file ModelComponent.cpp.
|
noexcept |
Sets the starting frame for the active animation.
| aAnimationDelta | Starting frame value. |
Definition at line 138 of file ModelComponent.cpp.
|
finalvirtual |
Update the component state.
| aNode | Node this component is attached to. |
| aDelta | Elapsed time since the last update, in seconds. |
Implements AeonGames::Component.
Definition at line 148 of file ModelComponent.cpp.