diff options
author | drumsetmonkey <abelleisle@roadrunner.com> | 2016-03-02 10:11:57 -0500 |
---|---|---|
committer | drumsetmonkey <abelleisle@roadrunner.com> | 2016-03-02 10:11:57 -0500 |
commit | b61bbe703a03d58dc660d05b4bb32f69a4c70436 (patch) | |
tree | b2a37414a4a676399a8cd843b3ad98b6ea0e899e /src | |
parent | 0d8508aa2464e1e7e4aacd8f11ec90fc62dd5504 (diff) | |
parent | e879b257b9512816f2ff579a7444fe600a74ed91 (diff) |
Merge branch 'master' of http://github.com/tcsullivan/gamedev
Diffstat (limited to 'src')
-rw-r--r-- | src/Makefile | 18 | ||||
-rw-r--r-- | src/threadpool.cpp | 6 | ||||
-rw-r--r-- | src/ui.cpp | 2 |
3 files changed, 6 insertions, 20 deletions
diff --git a/src/Makefile b/src/Makefile deleted file mode 100644 index 91743ef..0000000 --- a/src/Makefile +++ /dev/null @@ -1,18 +0,0 @@ -LIBS = -lpthread -lGL -lSDL2 -lSDL2_image -lSDL2_mixer -lfreetype - -FLAGS = -std=c++11 -I../include -I../include/freetype2 -Wall -Wextra -Werror - -OUT = `echo "" $$(ls -c $(wildcard *.cpp)) | sed s/.cpp/.o/g | sed 's/ / ..\/out\//g'` -OUT64 = `echo "" $$(ls -c $(wildcard *.cpp)) | sed s/.cpp/.o/g | sed 's/ / ..\/out64\//g'` - -../out/%.o: - @echo " CXX " $(shell echo $@ | sed 's/..\/out\///g' | sed 's/\.o/\.cpp/') - @g++ $(FLAGS) -m32 -o $@ -c $(shell echo $@ | sed 's/..\/out\///g' | sed 's/\.o/\.cpp/') $(LIBS) -lSDL2main - -../out64/%.o: - @echo " CXX " $(shell echo $@ | sed 's/..\/out64\///g' | sed 's/\.o/\.cpp/') - @g++ $(FLAGS) -m64 -o $@ -c $(shell echo $@ | sed 's/..\/out64\///g' | sed 's/\.o/\.cpp/') $(LIBS) - -all: $(shell echo $(OUT)) - -64: $(shell echo $(OUT64)) diff --git a/src/threadpool.cpp b/src/threadpool.cpp index d49217d..619f002 100644 --- a/src/threadpool.cpp +++ b/src/threadpool.cpp @@ -1,5 +1,9 @@ #include "threadpool.h" +/** + * Stolen from some guy. + */ + // Constructor. ThreadPool::ThreadPool(int threads) : terminate(false), @@ -92,4 +96,4 @@ ThreadPool::~ThreadPool() { ShutDown(); } -}
\ No newline at end of file +} @@ -12,7 +12,7 @@ extern SDL_Window *window; /* * External references for updating player coords / current world. -*/ + */ extern Player *player; extern World *currentWorld; |