Skip to content

Commit

Permalink
Fixes and updates
Browse files Browse the repository at this point in the history
  • Loading branch information
data-man committed Oct 16, 2021
1 parent b7e2e38 commit 15b37ad
Show file tree
Hide file tree
Showing 1,178 changed files with 1,728 additions and 201,622 deletions.
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@

CPPFILES=CumulativeDistributionFunction.cpp Galaxy.cpp GalaxyWnd.cpp Helper.cpp main.cpp SDLWnd.cpp TextBuffer.cpp
OBJFILES=$(CPPFILES:.cpp=.o)
OUT=main
OUT=galaxy_renderer
PKG_CONFIG?=pkg-config
SDLLIBS:=$(shell $(PKG_CONFIG) sdl2 --libs)
SDLCFLAGS:=$(shell $(PKG_CONFIG) sdl2 --cflags)
GLEWLIBS:=$(shell $(PKG_CONFIG) --libs-only-l glew)
GLEWCFLAGS:=$(shell $(PKG_CONFIG) --cflags glew)
DEBUG=-g
CFLAGS=${DEBUG} -Wall -Wextra --pedantic -std=c++11 -Iinclude -I/usr/include/SDL2 ${GLEWCFLAGS} ${SDLCFLAGS}
CFLAGS=${DEBUG} -Wall -Wextra --pedantic -std=c++11 -Idependencies/glm -Iinclude -I/usr/include/SDL2 ${GLEWCFLAGS} ${SDLCFLAGS}
LIBS=${SDLLIBS} ${GLEWLIBS} -lSDL2_ttf

COMPILE=g++ ${CFLAGS}
Expand All @@ -21,5 +21,5 @@ $(OUT): $(OBJFILES)
$(COMPILE) -c -o $@ $^

clean:
rm -f ${OBJFILES} main
rm -f ${OBJFILES} $(OUT)

6 changes: 3 additions & 3 deletions TextBuffer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -82,15 +82,15 @@ void TextBuffer::Initialize()
if (!TTF_WasInit())
TTF_Init();

_pSmallFont = TTF_OpenFont("consola.ttf", 14);
_pSmallFont = TTF_OpenFont("assets/consola.ttf", 14);
if (_pSmallFont == nullptr)
throw std::runtime_error(TTF_GetError());

_pFont = TTF_OpenFont("arial.ttf", 18);
_pFont = TTF_OpenFont("assets/arial.ttf", 18);
if (_pFont == nullptr)
throw std::runtime_error(TTF_GetError());

_pFontCaption = TTF_OpenFont("arial.ttf", 40);
_pFontCaption = TTF_OpenFont("assets/arial.ttf", 40);
if (_pFontCaption == nullptr)
throw std::runtime_error(TTF_GetError());

Expand Down
87 changes: 0 additions & 87 deletions dependencies/glm/.appveyor.yml

This file was deleted.

61 changes: 0 additions & 61 deletions dependencies/glm/.gitignore

This file was deleted.

Loading

0 comments on commit 15b37ad

Please sign in to comment.