]> git.localhorst.tv Git - blank.git/blobdiff - src/ui/Interface.hpp
show player orientation in debug overlay
[blank.git] / src / ui / Interface.hpp
index 0d338bed9f3949a91c9854a254ac1c2fade51486..d045cc900b2e5215fea3c3dcc00eb443e7ee02fa 100644 (file)
@@ -7,13 +7,13 @@
 #include "../app/FPSController.hpp"
 #include "../app/IntervalTimer.hpp"
 #include "../audio/Sound.hpp"
-#include "../graphics/Font.hpp"
 #include "../model/geometry.hpp"
 #include "../model/OutlineModel.hpp"
 #include "../world/Block.hpp"
 
 #include <string>
 #include <glm/glm.hpp>
+#include <SDL.h>
 
 
 namespace blank {
@@ -70,6 +70,7 @@ public:
        void ToggleDebug();
        void UpdateCounter();
        void UpdatePosition();
+       void UpdateOrientation();
 
        void PostMessage(const char *);
        void PostMessage(const std::string &msg) {
@@ -87,7 +88,6 @@ private:
        Environment &env;
        World &world;
        FPSController ctrl;
-       Font font;
        HUD hud;
 
        Ray aim;
@@ -100,6 +100,7 @@ private:
 
        FixedText counter_text;
        FixedText position_text;
+       FixedText orientation_text;
        MessageBox messages;
        IntervalTimer msg_timer;
 
@@ -116,6 +117,8 @@ private:
 
        glm::ivec3 fwd, rev;
 
+       bool debug;
+
 };
 
 }