triangle?

This commit is contained in:
2026-02-10 23:51:27 -06:00
parent 1f22a661cd
commit 0244f463c4
11 changed files with 83 additions and 49 deletions

View File

@@ -1,5 +1,6 @@
#ifdef WINDOW_GLFW
#undef WINDOW_GLFW
#ifndef WINDOW_GLFW_H
#define WINDOW_GLFW_H
#include "pch.hpp"
@@ -33,7 +34,7 @@ namespace Archimedes {
glfwWindowHint(GLFW_CONTEXT_VERSION_MINOR, 3);
glfwWindowHint(GLFW_OPENGL_PROFILE, GLFW_OPENGL_CORE_PROFILE);
//glfwWindowHint(GLFW_TRANSPARENT_FRAMEBUFFER, 1);
glfwWindowHint(GLFW_TRANSPARENT_FRAMEBUFFER, 1);
#endif
window = glfwCreateWindow(640, 480, "Archimedes", NULL, NULL);
@@ -115,7 +116,7 @@ namespace Archimedes {
return glfwWindowShouldClose(window);
}
void restoreContext() { glfwMakeContextCurrent(window); }
void restoreContext() override { glfwMakeContextCurrent(window); }
void getSize(int& w, int& h) override {
glfwGetFramebufferSize(window, &w, &h);
@@ -135,3 +136,4 @@ namespace Archimedes {
}
#endif
#endif