Skip to content

Commit 0126195

Browse files
committed
Add glfw buffer swap function
1 parent f200097 commit 0126195

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

base/glfw/glfw.hpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@ class Window {
2323
return createWindowSurface(window, instance, pAllocator);
2424
}
2525

26+
void swapBuffers() const {
27+
glfwSwapBuffers(window);
28+
}
29+
2630
void createWindow(const glm::uvec2& size, const glm::ivec2& position = { INT_MIN, INT_MIN }) {
2731
// Disable window resize
2832
window = glfwCreateWindow(size.x, size.y, "Window Title", nullptr, nullptr);

0 commit comments

Comments
 (0)