How to Install
Navigate to your project directory. e.g., cd my_awesome_project
Install the Nightly Version
Fetch wgl as external package dependency by running:
Install the Release Version
Fetch wgl as external package dependency by running:
Make sure to editv0.0.0 with the latest release version.
Import Module
Now, import wgl as external package module to your project by coping following code:
build.zig
const wgl = b.dependency("wgl", .{});
exe.root_module.addImport("wgl", wgl.module("wgl"));
lib.root_module.addImport("wgl", wgl.module("wgl"));
Shared Library Dependency
When you're targeting the Windows platform:
For nightly version download glfw3.dll and put this in your final executable's installation directory.
For the release version, download glfw.dll from the attachment section of the Release Tag.