Adding a method of rendering GUI's that avoid the whole throwing raw

data around everywhere thing I had going on before
This commit is contained in:
MitchellHansen
2017-09-27 23:36:20 -07:00
parent a6e18bbb54
commit 3ff6fb0b14
11 changed files with 343 additions and 59 deletions

View File

@@ -4,13 +4,14 @@
#include <memory>
#include "Pub_Sub.h"
#include "Vector4.hpp"
#include "Gui.h"
struct LightPrototype;
class LightController;
struct PackedData;
class LightHandle : public VrEventSubscriber{
class LightHandle : public VrEventSubscriber, private Gui{
public:
@@ -35,6 +36,10 @@ public:
void update(double delta_time);
virtual void render_gui() override;
virtual void update_gui() override;
private:
LightHandle(LightController *const light_controller, unsigned int light_id, LightPrototype light_prototype, PackedData *const data_reference);