diff options
| author | Nguyễn Gia Phong <mcsinyx@disroot.org> | 2021-10-20 15:02:35 +0700 |
|---|---|---|
| committer | Nguyễn Gia Phong <mcsinyx@disroot.org> | 2021-10-20 15:02:35 +0700 |
| commit | 3e6d3467bec4c5850b3b1f5c555ca88e5dcf2016 (patch) | |
| tree | 9f57198bf967eeff26e0f61713e1c3b7d868c2f3 /src | |
| parent | 9cc54f8536924aa269d01ff16543d8bcede5e4c5 (diff) | |
| download | gfz-3e6d3467bec4c5850b3b1f5c555ca88e5dcf2016.tar.gz | |
Stop exposing window impl type
Diffstat (limited to 'src')
| -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 { |
