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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user