summary refs log tree commit diff stats
path: root/src/editor.cpp
diff options
context:
space:
mode:
authorKelly Rauchenberger <fefferburbia@gmail.com>2019-02-24 12:30:40 -0500
committerKelly Rauchenberger <fefferburbia@gmail.com>2019-02-24 12:30:40 -0500
commit90b9831d6fb89feedeec63cb392c4535c5df60fe (patch)
tree78faf1865bc0566454254d072b85f872bbc585ea /src/editor.cpp
parentf264cfd7655a48f7e9a6e2fc5b1c62d6d2036025 (diff)
downloaddispatcher-90b9831d6fb89feedeec63cb392c4535c5df60fe.tar.gz
dispatcher-90b9831d6fb89feedeec63cb392c4535c5df60fe.tar.bz2
dispatcher-90b9831d6fb89feedeec63cb392c4535c5df60fe.zip
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.
Diffstat (limited to 'src/editor.cpp')
-rw-r--r--src/editor.cpp13
1 files changed, 13 insertions, 0 deletions
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 @@
1#include "editor.h"
2
3void Editor::tick(
4 double dt,
5 const Uint8* keystate)
6{
7
8}
9
10void Editor::render(SDL_Renderer* ren)
11{
12
13}