Mild updates to Window and other pieces to match the rest

This commit is contained in:
NaifBanana
2026-08-20 08:14:28 -05:00
parent fa749a6ebf
commit 52a01debd6
5 changed files with 66 additions and 43 deletions
+2 -2
View File
@@ -9,8 +9,8 @@ if (NB_BUILD_TESTS)
target_link_libraries(TestWindow
NBCore
NBGraphics
GTest::gtest_main
# GTest::gtest_main
)
gtest_discover_tests(TestWindow)
# gtest_discover_tests(TestWindow)
endif()
+13 -1
View File
@@ -1,6 +1,18 @@
#include <Buffers.hpp>
#include "GLLoad.hpp"
// #define _NB_AUTOLOG
#include "VertexArray.hpp"
#include "Window.hpp"
int main() {
nb::logger.log("Howdy!");
nb::Window window(200, 200, "Hello!");
window.setWindowHint(GLFW_CONTEXT_VERSION_MAJOR, 3);
window.setWindowHint(GLFW_CONTEXT_VERSION_MINOR, 3);
window.init();
GLFWwindow* window_ptr = window.getWindow();
while(!glfwWindowShouldClose(window_ptr)) {}
return 0;
}