diff options
| author | Nguyễn Gia Phong <mcsinyx@disroot.org> | 2021-09-09 17:53:24 +0700 |
|---|---|---|
| committer | Nguyễn Gia Phong <mcsinyx@disroot.org> | 2021-09-09 17:53:24 +0700 |
| commit | da9e10dc992d3a389d549e344b17eae4c32d98b0 (patch) | |
| tree | 6b1a54d42ad220ad49e1cb135c6a4612b508e6fa /examples | |
| parent | 517356e2d6ebce33004d91cb55173f8cc419fc66 (diff) | |
| download | gfz-da9e10dc992d3a389d549e344b17eae4c32d98b0.tar.gz | |
Support window hinting
Diffstat (limited to 'examples')
| -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(); } } |
