From 9961d177fdd3339922d15a5645af49c0d7357fbd Mon Sep 17 00:00:00 2001 From: Anna Wiggins Date: Tue, 28 Jun 2011 21:21:31 -0400 Subject: [PATCH] removed now unnecessary class, renamed project --- Makefile | 2 +- game.h | 1 - sdlrenderer.cpp | 23 ----------------------- sdlrenderer.h | 30 ------------------------------ 4 files changed, 1 insertion(+), 55 deletions(-) delete mode 100644 sdlrenderer.cpp delete mode 100644 sdlrenderer.h diff --git a/Makefile b/Makefile index de78694..1f1e6a2 100644 --- a/Makefile +++ b/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` diff --git a/game.h b/game.h index 527bd06..9e3dc05 100644 --- a/game.h +++ b/game.h @@ -8,7 +8,6 @@ #define _GAME_H_ #include "gamedata.h" -#include "sdlrenderer.h" #include "gamestate.h" #include diff --git a/sdlrenderer.cpp b/sdlrenderer.cpp deleted file mode 100644 index be03cf4..0000000 --- a/sdlrenderer.cpp +++ /dev/null @@ -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() -{ -} diff --git a/sdlrenderer.h b/sdlrenderer.h deleted file mode 100644 index 3e05a04..0000000 --- a/sdlrenderer.h +++ /dev/null @@ -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 - -class SDLRenderer -{ - public: - SDLRenderer(); - - bool init(); - void render(GameData& data); - void cleanup(); - - private: -}; - -#endif