From 62de63a0d26ece5c0dc2cd48c0a41d35de1e38d4 Mon Sep 17 00:00:00 2001 From: realtradam Date: Fri, 25 Nov 2022 17:36:37 -0500 Subject: cleanup code --- src/window.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'src/window.cpp') 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 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; } } -- cgit v1.2.3