Forgot to actually compile the shader :P

This commit is contained in:
NaifBanana
2026-08-20 08:14:29 -05:00
parent a5c207d150
commit 960689ecb6
2 changed files with 12 additions and 2 deletions
+5 -1
View File
@@ -5,7 +5,7 @@
int main() {
nb::logger.log("Howdy!");
nb::Window window(200, 200, "Hello!");
nb::Window window(400, 400, "Hello!");
window.setWindowHint(GLFW_CONTEXT_VERSION_MAJOR, 3);
window.setWindowHint(GLFW_CONTEXT_VERSION_MINOR, 3);
window.init();
@@ -56,6 +56,10 @@ int main() {
GLFWwindow* window_ptr = window.getWindow();
while(!glfwWindowShouldClose(window_ptr)) {
glDrawArrays(GL_TRIANGLES, 0, 3);
glClearColor(0.2f, 0.3f, 0.3f, 1.0f);
glClear(GL_COLOR_BUFFER_BIT);
glfwPollEvents();
glfwSwapBuffers(window_ptr);
}
return 0;