|
The Joe Engine
Joe's engine programming playground
|
The Mesh Component Manager class. More...
#include <MeshComponentManager.h>
Public Member Functions | |
| JEMeshComponentManager ()=default | |
| Default constructor. More... | |
| virtual | ~JEMeshComponentManager ()=default |
| Destructor (default). More... | |
| void | Update (JEEngineInstance *engineInstance) override |
| Update mesh components. More... | |
| void | AddNewComponent (uint32_t entityID) override |
| Add new mesh component. More... | |
| void | RemoveComponent (uint32_t entityID) override |
| Remove mesh component. More... | |
| MeshComponent * | GetComponent (uint32_t entityID) const |
| Get mesh component. More... | |
| void | SetComponent (uint32_t entityID, MeshComponent meshComp) |
| Set mesh component. More... | |
| const PackedArray< MeshComponent > & | GetComponentList () const |
| Get list of mesh components. More... | |
Public Member Functions inherited from JoeEngine::JEComponentManager | |
| JEComponentManager ()=default | |
| Default constructor. More... | |
| virtual | ~JEComponentManager ()=default |
| Destructor (default). More... | |
The Mesh Component Manager class.
Contains all mesh components in a packed array of data.
|
default |
Default constructor.
No specific behavior.
|
virtualdefault |
Destructor (default).
|
overridevirtual |
Add new mesh component.
Adds a new, default-constructed mesh component to the packed array of mesh components at the specified entity index. Overrides purely virtual function declared in JEComponentManager.
| entityID | the id of the entity to add the mesh component to |
Implements JoeEngine::JEComponentManager.
| MeshComponent * JoeEngine::JEMeshComponentManager::GetComponent | ( | uint32_t | entityID | ) | const |
Get mesh component.
Gets the mesh component attached to the entity ID.
| entityID | the entity ID whose mesh component to return |
| const PackedArray< MeshComponent > & JoeEngine::JEMeshComponentManager::GetComponentList | ( | ) | const |
Get list of mesh components.
Gets the member list of mesh components.
|
overridevirtual |
Remove mesh component.
Removes the mesh component from the packed array of mesh components at the specified entity index. Overrides purely virtual function declared in JEComponentManager.
| entityID | the id of the entity to remove the mesh component from |
Implements JoeEngine::JEComponentManager.
| void JoeEngine::JEMeshComponentManager::SetComponent | ( | uint32_t | entityID, |
| MeshComponent | meshComp | ||
| ) |
Set mesh component.
Sets the mesh component already attached to the entityID to the new component.
| entityID | the entity ID whose mesh component to set |
| meshComp | the new material component |
|
overridevirtual |
Update mesh components.
Updates all stored mesh components. Currently, updating mesh components does nothing. Overrides purely virtual function declared in JEComponentManager.
| engineInstance | a reference to the current JEEngineInstance object if needed for certain API calls |
Implements JoeEngine::JEComponentManager.