removed now unnecessary class, renamed project
This commit is contained in:
parent
a40773d8b0
commit
9961d177fd
2
Makefile
2
Makefile
|
@ -1,6 +1,6 @@
|
|||
# Simple makefile for now, we'll use something more complex if/when we need it
|
||||
|
||||
PROJECT=graphgame
|
||||
PROJECT=treewars
|
||||
CXX=g++
|
||||
CXXFLAGS=-DDEBUG -g `sdl-config --cflags`
|
||||
LDFLAGS=`sdl-config --libs`
|
||||
|
|
1
game.h
1
game.h
|
@ -8,7 +8,6 @@
|
|||
#define _GAME_H_
|
||||
|
||||
#include "gamedata.h"
|
||||
#include "sdlrenderer.h"
|
||||
#include "gamestate.h"
|
||||
#include <stack>
|
||||
|
||||
|
|
|
@ -1,23 +0,0 @@
|
|||
#include "sdlrenderer.h"
|
||||
#include "drawutils.h"
|
||||
#include "debug.h"
|
||||
|
||||
SDLRenderer::SDLRenderer(SDL_Surface* display)
|
||||
{
|
||||
this->display = display;
|
||||
}
|
||||
|
||||
|
||||
bool SDLRenderer::init()
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
void SDLRenderer::render(GameData& data)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
void SDLRenderer::cleanup()
|
||||
{
|
||||
}
|
|
@ -1,30 +0,0 @@
|
|||
/* This class handles all of the messy details of SDL rendering
|
||||
* We typically want to call init() when we start up, and
|
||||
* render() when we want to render a frame
|
||||
*
|
||||
* Note that this class does NOT call SDL_init() - that should be
|
||||
* done before init()ing here
|
||||
*
|
||||
* cleanup() does the SDL destructor work - call it explicitly in case
|
||||
* we want to keep the object around and re-init it...
|
||||
*/
|
||||
|
||||
#ifndef _SDLRENDERER_H_
|
||||
#define _SDLRENDERER_H_
|
||||
|
||||
#include "gamedata.h"
|
||||
#include <SDL.h>
|
||||
|
||||
class SDLRenderer
|
||||
{
|
||||
public:
|
||||
SDLRenderer();
|
||||
|
||||
bool init();
|
||||
void render(GameData& data);
|
||||
void cleanup();
|
||||
|
||||
private:
|
||||
};
|
||||
|
||||
#endif
|
Loading…
Reference in New Issue
Block a user