diff --git a/.gitignore b/.gitignore index 9912799..6e71230 100644 --- a/.gitignore +++ b/.gitignore @@ -4,4 +4,6 @@ .vscode -bin/* \ No newline at end of file +bin/* + +.ccls-cache/* diff --git a/src/Window.cpp b/src/Window.cpp index 40a5df8..f2e4245 100644 --- a/src/Window.cpp +++ b/src/Window.cpp @@ -1,17 +1,17 @@ #include "Window.h" -int Window::setClearColor(Color c) { +void Window::setClearColor(Color c) { clearColor = &c; } -int Window::setClearColor(uint8_t r,Uint8 g,Uint8 b,Uint8 a) { +void Window::setClearColor(uint8_t r,Uint8 g,Uint8 b,Uint8 a) { clearColor[0].r = r; clearColor[0].g = g; clearColor[0].b = b; clearColor[0].a = a; } -int Window::initUI() { +void Window::initUI() { if(SDL_Init(SDL_INIT_EVERYTHING) != 0) { fprintf(stderr,"\033[92m[ ERROR ] Could not initialize SDL:\n%s\n", SDL_GetError()); } @@ -26,4 +26,4 @@ int Window::initUI() { -1, SDL_RENDERER_ACCELERATED ); -} \ No newline at end of file +} diff --git a/src/Window.h b/src/Window.h index af4778f..f1ca899 100644 --- a/src/Window.h +++ b/src/Window.h @@ -7,8 +7,8 @@ class Window { Color *clearColor = new Color(BLACK); SDL_Window *win; SDL_Renderer *rend; - virtual int update() {}; - int initUI() {}; - int setClearColor(Color c) {}; - int setClearColor(Uint8 r,Uint8 g,Uint8 b,Uint8 a) {}; -}; \ No newline at end of file + virtual int update(); + void initUI(); + void setClearColor(Color c); + void setClearColor(Uint8 r,Uint8 g,Uint8 b,Uint8 a); +};