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

@@ -11,6 +11,7 @@
#include <unordered_map>
#include "Logger.h"
#include "map/Map.h"
#include "Gui.h"
#ifdef linux
#include <CL/cl.h>
@@ -86,7 +87,7 @@ struct device_info {
struct PackedData;
class CLCaster {
class CLCaster : private Gui {
public:
@@ -152,6 +153,11 @@ public:
void test_edit_viewport(int width, int height, float v_fov, float h_fov);
// ============= GUI ==============
virtual void render_gui() override;
virtual void update_gui() override;
// ================================
private:
/**