diff options
Diffstat (limited to 'examples/context.zig')
| -rw-r--r-- | examples/context.zig | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/examples/context.zig b/examples/context.zig index fcbc594..3abd992 100644 --- a/examples/context.zig +++ b/examples/context.zig @@ -25,17 +25,17 @@ // // For more information, please refer to <http://unlicense.org/> -const gfz = @import("gfz"); +const gf = @import("gfz"); -pub fn main() gfz.Error!void { - try gfz.init(); - defer gfz.deinit() catch unreachable; - const window = try gfz.Window.create(800, 600, "Hello, World!", null, null); +pub fn main() gf.Error!void { + try gf.init(); + defer gf.deinit() catch unreachable; + const window = try gf.Window.create(800, 600, "Hello, World!", .{}, .{}); try window.makeCurrent(); while (!try window.shouldClose()) { try window.swapBuffers(); - try gfz.pollEvents(); + try gf.pollEvents(); } } |
