diff options
| author | realtradam <[email protected]> | 2022-11-25 17:36:37 -0500 |
|---|---|---|
| committer | realtradam <[email protected]> | 2022-11-25 17:36:37 -0500 |
| commit | 62de63a0d26ece5c0dc2cd48c0a41d35de1e38d4 (patch) | |
| tree | b91117aabf53eb1dec0b8dc0d34c7656872f71e8 /src/window.cpp | |
| parent | 4e7226ad1b081982e5cbed349edca1c5b0e1b779 (diff) | |
| download | Ogle-62de63a0d26ece5c0dc2cd48c0a41d35de1e38d4.tar.gz Ogle-62de63a0d26ece5c0dc2cd48c0a41d35de1e38d4.zip | |
cleanup code
Diffstat (limited to 'src/window.cpp')
| -rw-r--r-- | src/window.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/window.cpp b/src/window.cpp index 98a7a60..f1a6c46 100644 --- a/src/window.cpp +++ b/src/window.cpp @@ -1,6 +1,12 @@ + +// external libs #include "glad/glad.h" #include "GLFW/glfw3.h" +// project headers +#include "window.hpp" + +// std libs #include <iostream> namespace Window { @@ -25,7 +31,7 @@ namespace Window { ) { glfwInit(); - glfwWindowHint(GLFW_CONTEXT_VERSION_MAJOR, 3); // 4.6 is highest + glfwWindowHint(GLFW_CONTEXT_VERSION_MAJOR, 3); // 4.6 is highest, but lets use 3.3 for compatability glfwWindowHint(GLFW_CONTEXT_VERSION_MINOR, 3); glfwWindowHint(GLFW_OPENGL_PROFILE, GLFW_OPENGL_CORE_PROFILE); glfwWindowHint(GLFW_RESIZABLE, GLFW_FALSE); @@ -53,6 +59,7 @@ namespace Window { glEnable(GL_BLEND); glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA); + return 0; } } |
