From da9e10dc992d3a389d549e344b17eae4c32d98b0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nguy=E1=BB=85n=20Gia=20Phong?= Date: Thu, 9 Sep 2021 17:53:24 +0700 Subject: Support window hinting --- examples/context.zig | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'examples/context.zig') 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 -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(); } } -- cgit v1.2.3