Made window hinting/param system easier
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user