Made window hinting/param system easier

This commit is contained in:
NaifBanana
2026-10-12 16:54:36 -05:00
parent c6ab0327c1
commit 416446206f
4 changed files with 46 additions and 70 deletions
+3 -2
View File
@@ -3,6 +3,7 @@
#include "stb_image.h"
#include <NBCore/Errors.hpp>
#include <NBCore/TypeTraits.hpp>
#include <NBGraphics/Image.hpp>
#include <NBGraphics/Mesh.hpp>
#include <NBGraphics/ProgramPipeline.hpp>
@@ -17,8 +18,8 @@ int main() {
400,
400,
"Howdy!",
{{GLFW_CONTEXT_VERSION_MAJOR, 3},
{GLFW_CONTEXT_VERSION_MINOR, 3}}
nb::KeyVal(GLFW_CONTEXT_VERSION_MAJOR, 3),
nb::KeyVal(GLFW_CONTEXT_VERSION_MINOR, 3)
);
nb::OGLWindow::MakeCurrent(window);