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

@@ -1,11 +1,12 @@
#pragma once
#include <SFML/System/Vector3.hpp>
#include <SFML/System/Vector2.hpp>
#include <SFML/System/Vector2.hpp>
#include "util.hpp"
#include "Pub_Sub.h"
#include <cmath>
#include "Gui.h"
class Camera : public VrEventSubscriber{
class Camera : public VrEventSubscriber, private Gui{
public:
enum DIRECTION { FORWARD, REARWARD, LEFT, RIGHT, UP, DOWN };
@@ -40,6 +41,10 @@ public:
void recieve_event(VrEventPublisher* publisher, std::unique_ptr<vr::Event> event) override;
virtual void render_gui() override;
virtual void update_gui() override;
private:
float friction_coefficient = 0.1f;