diff options
author | dakjos <dsojka@siu.edu> | 2015-05-07 19:53:39 -0500 |
---|---|---|
committer | dakjos <dsojka@siu.edu> | 2015-05-07 19:53:39 -0500 |
commit | c63d77ddddb69ef0f641d90a8c3922fdc356224c (patch) | |
tree | 6867ee8ee11718eca9bb144b98f17c695a891495 /src/window.cpp | |
parent | ffcee12acf3fe3f972f322c18b3203212682205d (diff) |
Some variable names changed and many comments made so I understand what the fuck is going on
Diffstat (limited to 'src/window.cpp')
-rw-r--r-- | src/window.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/window.cpp b/src/window.cpp index b25f11e..66c7a4c 100644 --- a/src/window.cpp +++ b/src/window.cpp @@ -1,6 +1,6 @@ #include "window.hpp" -Window::Window() +Window::Window() //Constructor { SDL_Init(SDL_INIT_VIDEO); main = SDL_CreateWindow("main",SDL_WINDOWPOS_UNDEFINED,SDL_WINDOWPOS_UNDEFINED,1280,800,SDL_WINDOW_SHOWN); @@ -8,19 +8,19 @@ Window::Window() SDL_SetRenderDrawColor(renderer, 0, 0, 0, 0); } -void Window::Destroy() +void Window::Destroy() //Kills window { SDL_DestroyRenderer(renderer); SDL_DestroyWindow(main); SDL_Quit(); } -void Window::Clear() +void Window::Clear() //Clears renderer { SDL_RenderClear(renderer); } -void Window::Render() +void Window::Render() //Brings image forward { SDL_RenderPresent(renderer); } |