diff options
Diffstat (limited to 'src/Window.zig')
-rw-r--r-- | src/Window.zig | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/Window.zig b/src/Window.zig index f72ed71..d15dad3 100644 --- a/src/Window.zig +++ b/src/Window.zig @@ -23,9 +23,6 @@ const checkError = gfz.checkError; const getError = gfz.getError; const gfz = @import("gfz.zig"); -pub const Impl = GLFWwindow; -pimpl: *Impl, - const Self = @This(); const CursorPosFun = fn (window: Self, xpos: f64, ypos: f64) void; const KeyFun = fn (window: Self, key: c_int, scancode: c_int, @@ -33,6 +30,8 @@ const KeyFun = fn (window: Self, key: c_int, scancode: c_int, const MouseButtonFun = fn (window: Self, button: c_int, action: c_int, mods: c_int) void; const SizeFun = fn (window: Self, width: c_int, height: c_int) void; +const Impl = GLFWwindow; +pimpl: *Impl, /// Convert given function to GLFW callback. fn fnCast(comptime DestType: type, comptime fun: anytype) DestType { |