Skip to content

HaraldWik/yes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

90 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Yes - Stand for nothing I just tought it was funny

zig fetch --save git+https://github.com/HaraldWik/yes

build.zig

const yes = b.dependency("yes", .{ .target = target, .optimize = optimize }).module("yes");

main.zig

const std = @import("std");
const yes = @import("yes");

pub fn main() !void {
    const window: yes.Window = try .open(.{ .title = "Title", .width = 900, .height = 600 });
    defer window.close();

    // next returns null on exit
    while (window.next()) |event| {
        _ = event;
    } else std.debug.print("Exit!\n", .{});
}

supported platforms include

Windows Xorg Wayland

About

A windowing library for zig

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages