poll events before rendering

This commit is contained in:
2025-03-22 12:16:51 -05:00
parent 92294c3166
commit bfee8536a8
3 changed files with 6 additions and 6 deletions

View File

@@ -28,11 +28,6 @@ namespace Archimedes {
return glfwWindowShouldClose(w);
}
void WindowGLFW::doFrame() {
glfwPollEvents();
glfwSwapBuffers(w);
}
void WindowGLFW::getSize(int& w, int& h) {
glfwGetFramebufferSize(this->w, &w, &h);
}

View File

@@ -14,7 +14,9 @@ namespace Archimedes {
bool shouldClose();
void doFrame();
void doFrame() { glfwSwapBuffers(w); }
void pollEvents() { glfwPollEvents(); }
void getSize(int&, int&);