Increase portability as per SDL standards, add a window title

This commit is contained in:
Anna Rose 2011-06-24 09:53:44 -04:00
parent 718941eacd
commit 6560b1c28b
4 changed files with 6 additions and 6 deletions

View File

@ -2,8 +2,8 @@
PROJECT=graphgame
CXX=g++
CXXFLAGS=-DDEBUG -g
LDFLAGS=-lSDL
CXXFLAGS=-DDEBUG -g `sdl-config --cflags`
LDFLAGS=`sdl-config --libs`
OBJECTS=drawutils.o gamecore.o graph.o main.o mainevent.o mathutils.o gamedata.o sdlrenderer.o
all: $(PROJECT)

View File

@ -3,7 +3,7 @@
#ifndef _DRAWUTILS_H_
#define _DRAWUTILS_H_
#include <SDL/SDL.h>
#include <SDL.h>
#include <string>
using std::string;

View File

@ -1,7 +1,7 @@
#include "gamecore.h"
#include "mathutils.h"
#include "debug.h"
#include <SDL/SDL.h>
#include <SDL.h>
int GameCore::MAX_MOVE_DISTANCE = 100;
int GameCore::NODE_RADIUS = 12;
@ -34,7 +34,7 @@ int GameCore::execute()
bool GameCore::init()
{
if (SDL_Init(SDL_INIT_EVERYTHING) < 0) return false;
SDL_WM_SetCaption("TreeWars","TreeWars");
return renderer.init();
}

View File

@ -10,7 +10,7 @@
#ifndef _MAINEVENT_H_
#define _MAINEVENT_H_
#include <SDL/SDL.h>
#include <SDL.h>
class MainEvent
{