summary refs log tree commit diff stats
path: root/state.h
diff options
context:
space:
mode:
Diffstat (limited to 'state.h')
-rw-r--r--state.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/state.h b/state.h index 7373940..2d6f804 100644 --- a/state.h +++ b/state.h
@@ -1,12 +1,12 @@
1#include <SDL.h>
2
1#ifndef STATE_H 3#ifndef STATE_H
2#define STATE_H 4#define STATE_H
3 5
4class State 6class State
5{ 7{
6 public: 8 public:
7 virtual void input(SDL_keysym key) {}; 9 virtual State* operator() (SDL_Renderer* renderer) {return NULL;};
8 virtual void tick() {};
9 virtual void render(SDL_Surface* screen) {};
10}; 10};
11 11
12#endif 12#endif \ No newline at end of file