poll events before rendering
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
@@ -14,7 +14,9 @@ namespace Archimedes {
|
||||
|
||||
bool shouldClose();
|
||||
|
||||
void doFrame();
|
||||
void doFrame() { glfwSwapBuffers(w); }
|
||||
|
||||
void pollEvents() { glfwPollEvents(); }
|
||||
|
||||
void getSize(int&, int&);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user