]> git.localhorst.tv Git - blank.git/blobdiff - src/app.hpp
control (some) application parameters via cmdline
[blank.git] / src / app.hpp
index e1f328ac5e7717acf37fd933c62ad3f5843d8f93..cb71411de60e312231f0ac847580f8baf914d579 100644 (file)
@@ -23,9 +23,17 @@ public:
        Application(const Application &) = delete;
        Application &operator =(const Application &) = delete;
 
+       /// run until user quits
        void Run();
        void Loop(int dt);
 
+       /// run for n frames
+       void RunN(size_t n);
+       /// run for t milliseconds
+       void RunT(size_t t);
+       /// run for n frames, assuming t milliseconds for each
+       void RunS(size_t n, size_t t);
+
        void HandleEvents();
        void Update(int dt);
        void Render();
@@ -39,21 +47,17 @@ private:
        InitGLEW init_glew;
        DirectionalLighting program;
 
-       float move_velocity;
-       float pitch_sensitivity;
-       float yaw_sensitivity;
-
        Camera cam;
        HUD hud;
        World world;
-       OutlineModel outline;
+       FPSController controller;
 
+       OutlineModel outline;
        bool outline_visible;
        glm::mat4 outline_transform;
 
        bool running;
 
-       bool front, back, left, right, up, down;
        bool place, remove, pick;
 
        int remove_id;