From fb75f6b8d62d8ea6d387807a20020df0bb7ab4fb Mon Sep 17 00:00:00 2001 From: Ben Kyd Date: Fri, 12 Feb 2021 00:43:19 +0000 Subject: [PATCH] welp picking this project back up --- src/display.cpp | 2 +- src/main.cpp | 10 +++++----- src/threadpool.hpp | 4 +++- 3 files changed, 9 insertions(+), 7 deletions(-) diff --git a/src/display.cpp b/src/display.cpp index 7b38153..79c680e 100644 --- a/src/display.cpp +++ b/src/display.cpp @@ -5,7 +5,7 @@ Display::Display( int w, int h, std::string title ) { mLogger << LOGGER_INFO << "Initializing display" << LOGGER_ENDL; - SDL_Init( SDL_INIT_VIDEO|SDL_INIT_AUDIO ); + SDL_Init( SDL_INIT_VIDEO | SDL_INIT_AUDIO ); SDL_GL_SetAttribute( SDL_GL_RED_SIZE, 8 ); SDL_GL_SetAttribute( SDL_GL_GREEN_SIZE, 8 ); diff --git a/src/main.cpp b/src/main.cpp index 68ce3b1..aca9724 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -17,9 +17,9 @@ #define __DEBUG -static const int VERSION_MAJOR = 1; -static const int VERSION_MINOR = 1; -static const int VERSION_PATCH = 0; +static const int VERSION_MAJOR = 0; +static const int VERSION_MINOR = 0; +static const int VERSION_PATCH = 1; void version() { @@ -48,6 +48,7 @@ void Loop( Display* display ) // rendering here + display->NextFrame(); } @@ -73,8 +74,7 @@ int main( int argc, char** argv ) Display display { WindowWidth, WindowHeight, version.str() }; - - Loop( &display ); + return 0; } diff --git a/src/threadpool.hpp b/src/threadpool.hpp index 507ae11..764544e 100644 --- a/src/threadpool.hpp +++ b/src/threadpool.hpp @@ -1 +1,3 @@ -// Threadpool for asset management and other such tasks \ No newline at end of file +// Threadpool for asset management and other such tasks + +