28 lines
689 B
C++
28 lines
689 B
C++
#ifndef HYDRALIGHTSYSTEM
|
|
#define HYDRALIGHTSYSTEM
|
|
|
|
#include "../../engine/HydraObject.h"
|
|
#include "../HydraSystem.h"
|
|
#include "../components/HydraLightComponent.h"
|
|
#include <GLMIncludes.h>
|
|
#include <queue>
|
|
#include <vector>
|
|
|
|
|
|
|
|
class HydraLightSystem : public HydraSystem
|
|
{
|
|
public:
|
|
void Initialise() override;
|
|
uint32_t GetLightCount();
|
|
protected:
|
|
void InitialiseComponent(HydraID entity_id) override;
|
|
virtual void UpdateSystem(float delta_t_seconds);
|
|
private:
|
|
void _WriteToGPU();
|
|
HydraID m_light_buffer_id = INVALID_HYDRA_ID;
|
|
std::vector<HydraLightComponent> m_lights;
|
|
|
|
};
|
|
#endif /* HYDRALIGHTSYSTEM */
|