diff options
Diffstat (limited to 'src/gfz.zig')
-rw-r--r-- | src/gfz.zig | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gfz.zig b/src/gfz.zig index 46bd247..d96f197 100644 --- a/src/gfz.zig +++ b/src/gfz.zig @@ -98,6 +98,12 @@ pub fn deinit() Error!void { try checkError(); } +/// Set the swap interval for the current context. +pub fn swapInterval(interval: c_int) Error!void { + glfwSwapInterval(interval); + try checkError(); +} + /// Process all pending events. pub fn pollEvents() Error!void { glfwPollEvents(); |