Point lights
This commit is contained in:
@@ -5,6 +5,13 @@
|
||||
#include <chrono>
|
||||
#include <queue>
|
||||
#include <GLMIncludes.h>
|
||||
|
||||
struct SpawnedActor
|
||||
{
|
||||
HydraID actor_id;
|
||||
std::chrono::time_point<std::chrono::steady_clock> spawned_time;
|
||||
};
|
||||
|
||||
class CLASS_DEFINE HydraLightSpawnerActor : public HydraActor
|
||||
{
|
||||
public:
|
||||
@@ -30,7 +37,7 @@ class CLASS_DEFINE HydraLightSpawnerActor : public HydraActor
|
||||
float m_interval = 0.0f;
|
||||
bool m_enabled = false;
|
||||
std::chrono::time_point<std::chrono::steady_clock> m_last_tick;
|
||||
std::queue<HydraID> m_spawned_actors;
|
||||
std::queue<SpawnedActor> m_spawned_actors;
|
||||
};
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user