The Joe Engine
Joe's engine programming playground
|
The Material Component Manager class. More...
#include <MaterialComponentManager.h>
Public Member Functions | |
JEMaterialComponentManager ()=default | |
Default constructor. More... | |
virtual | ~JEMaterialComponentManager ()=default |
Destructor (default). More... | |
void | Update (JEEngineInstance *engineInstance) override |
Update material components. More... | |
void | AddNewComponent (uint32_t entityID) override |
Add new material component. More... | |
void | RemoveComponent (uint32_t entityID) override |
Remove material component. More... | |
MaterialComponent * | GetComponent (uint32_t entityID) const |
Get material component. More... | |
void | SetComponent (uint32_t entityID, MaterialComponent newComp) |
Set material component. More... | |
const PackedArray< MaterialComponent > & | GetComponentList () const |
Get list of material components. More... | |
![]() | |
JEComponentManager ()=default | |
Default constructor. More... | |
virtual | ~JEComponentManager ()=default |
Destructor (default). More... | |
The Material Component Manager class.
Contains all material components in a packed array of data. The material system is in progress and this class may change in the near future.
|
default |
Default constructor.
No specific behavior.
|
virtualdefault |
Destructor (default).
|
overridevirtual |
Add new material component.
Adds a new, default-constructed material component to the packed array of material components at the specified entity index. Overrides purely virtual function declared in JEComponentManager.
entityID | the id of the entity to add the material component to |
Implements JoeEngine::JEComponentManager.
MaterialComponent * JoeEngine::JEMaterialComponentManager::GetComponent | ( | uint32_t | entityID | ) | const |
Get material component.
Gets the material component attached to the entity ID.
entityID | the entity ID whose material component to return |
const PackedArray< MaterialComponent > & JoeEngine::JEMaterialComponentManager::GetComponentList | ( | ) | const |
Get list of material components.
Gets the member list of mesh components.
|
overridevirtual |
Remove material component.
Removes the material component from the list of material components at the specified entity index. Overrides purely virtual function declared in JEComponentManager.
entityID | the id of the entity to remove the material component from |
Implements JoeEngine::JEComponentManager.
void JoeEngine::JEMaterialComponentManager::SetComponent | ( | uint32_t | entityID, |
MaterialComponent | newComp | ||
) |
Set material component.
Sets the material component already attached to the entityID to the new component.
entityID | the entity ID whose material component to set |
newComp | the new material component |
|
overridevirtual |
Update material components.
Updates all stored material components. Currently, updating material 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.