candler is used for windowing libraries to implement their own ways to get window information through a common interface.
inspired by rust-windowing/raw-window-handle and ported to zig for vitellus.
requires zig 0.16.0
to use this with the zig build system, import as so:
zig fetch --save git+https://github.com/eggyengine/candlerand then in build.zig:
const candler = b.dependency("candler", .{
.target = target,
.optimize = optimize,
});
// since this library is targeted towards windowing libraries, it uses a lib import (exe would work fine)
lib.root_module.addImport("candler", candler.module("candler"));and lastly in your library/executable:
const candler = @import("candler");