]> git.localhorst.tv Git - blank.git/blobdiff - src/app/State.hpp
state management and control
[blank.git] / src / app / State.hpp
diff --git a/src/app/State.hpp b/src/app/State.hpp
new file mode 100644 (file)
index 0000000..2bdd41b
--- /dev/null
@@ -0,0 +1,23 @@
+#ifndef BLANK_APP_STATE_HPP_
+#define BLANK_APP_STATE_HPP_
+
+#include <SDL.h>
+
+
+namespace blank {
+
+class Viewport;
+
+struct State {
+
+       virtual void Handle(const SDL_Event &) = 0;
+
+       virtual void Update(int dt) = 0;
+
+       virtual void Render(Viewport &) = 0;
+
+};
+
+};
+
+#endif