Folded sdlrenderer code into Game(), since we'll be doing rendering on a per-state basis
This commit is contained in:
8
game.h
8
game.h
@ -18,7 +18,7 @@ using std::stack;
|
||||
class Game : public GameState
|
||||
{
|
||||
public:
|
||||
Game() {}
|
||||
Game(SDL_Surface* display);
|
||||
~Game();
|
||||
|
||||
bool init();
|
||||
@ -34,13 +34,15 @@ class Game : public GameState
|
||||
private:
|
||||
void render();
|
||||
|
||||
SDLRenderer renderer;
|
||||
|
||||
// data
|
||||
GameData data;
|
||||
|
||||
static int NODE_RADIUS;
|
||||
static int MAX_MOVE_DISTANCE;
|
||||
|
||||
|
||||
// surfaces containing textures to draw
|
||||
SDL_Surface* background;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user