From 90b9831d6fb89feedeec63cb392c4535c5df60fe Mon Sep 17 00:00:00 2001 From: Kelly Rauchenberger Date: Sun, 24 Feb 2019 12:30:40 -0500 Subject: Started state machine The "--editor" flag can be passed to the program to start it in editor mode, which is currently nothing. The Renderer class was removed here, as each state basically needs to do its own rendering. However, refactoring to make this more elegant will probably occur in the future. --- src/editor.cpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 src/editor.cpp (limited to 'src/editor.cpp') diff --git a/src/editor.cpp b/src/editor.cpp new file mode 100644 index 0000000..6e53ac3 --- /dev/null +++ b/src/editor.cpp @@ -0,0 +1,13 @@ +#include "editor.h" + +void Editor::tick( + double dt, + const Uint8* keystate) +{ + +} + +void Editor::render(SDL_Renderer* ren) +{ + +} -- cgit 1.4.1