38 lines
1.0 KiB
C++
38 lines
1.0 KiB
C++
#include "HydraMaterialSystem.h"
|
|
#include "../../engine/HydraEngine.h"
|
|
#include "../HydraECS.h"
|
|
#include "../components/HydraMaterialComponent.h"
|
|
|
|
#include "../../buffer/HydraMaterialBufferManager.h"
|
|
#include "../../buffer/HydraTextureBufferManager.h"
|
|
|
|
#include "../../scheduler/HydraTaskScheduler.h"
|
|
#include "../../task/buffer/HydraCreateGPUBufferTask.hpp"
|
|
#include "../../task/buffer/HydraDeleteGPUBufferTask.hpp"
|
|
#include "../../task/buffer/HydraUpdateWholeGPUBufferTask.hpp"
|
|
#include "../../actor/HydraActorManager.h"
|
|
|
|
|
|
|
|
void HydraMaterialSystem::Initialise()
|
|
{
|
|
|
|
}
|
|
|
|
void HydraMaterialSystem::InitialiseComponent(HydraID entity_id)
|
|
{
|
|
}
|
|
|
|
|
|
void HydraMaterialSystem::UpdateSystem(float delta_t_seconds)
|
|
{
|
|
GetEngine()->MaterialBufferManager()->UpdateBuffer();
|
|
}
|
|
|
|
void HydraMaterialSystem::DestroyComponent(HydraID entity_id)
|
|
{
|
|
HydraMaterialComponent mat_comp = GetEngine()->ECS()->GetComponent<HydraMaterialComponent>(entity_id);
|
|
GetEngine()->MaterialBufferManager()->DeleteMaterial(mat_comp.material_id);
|
|
}
|
|
|