summary refs log tree commit diff stats
path: root/state.h
diff options
context:
space:
mode:
authorStarla Insigna <starla4444@gmail.com>2013-08-27 11:39:37 -0400
committerStarla Insigna <starla4444@gmail.com>2013-08-27 11:39:37 -0400
commitffd335aca284c286030e2b26f1a02a0441748f46 (patch)
treebcc1c241621fe159ae7ef178122fb41c5f23eb00 /state.h
parentd47da18958b5214def5127e201f60668c566d9bb (diff)
downloadmazeoflife-ffd335aca284c286030e2b26f1a02a0441748f46.tar.gz
mazeoflife-ffd335aca284c286030e2b26f1a02a0441748f46.tar.bz2
mazeoflife-ffd335aca284c286030e2b26f1a02a0441748f46.zip
Started rewriting game from scratch with SDL2
Only the title screen is currently implemented
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