{"id":13741432,"url":"https://github.com/andrewrk/zig-window","last_synced_at":"2025-04-14T10:32:53.784Z","repository":{"id":44881019,"uuid":"136692368","full_name":"andrewrk/zig-window","owner":"andrewrk","description":"window client library","archived":false,"fork":false,"pushed_at":"2022-01-20T21:22:05.000Z","size":1076,"stargazers_count":122,"open_issues_count":8,"forks_count":12,"subscribers_count":19,"default_branch":"master","last_synced_at":"2025-03-27T23:41:51.769Z","etag":null,"topics":["zig"],"latest_commit_sha":null,"homepage":null,"language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/andrewrk.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-06-09T05:04:33.000Z","updated_at":"2025-03-03T15:08:55.000Z","dependencies_parsed_at":"2022-09-26T19:52:56.643Z","dependency_job_id":null,"html_url":"https://github.com/andrewrk/zig-window","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andrewrk%2Fzig-window","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andrewrk%2Fzig-window/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andrewrk%2Fzig-window/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andrewrk%2Fzig-window/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/andrewrk","download_url":"https://codeload.github.com/andrewrk/zig-window/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248862646,"owners_count":21173846,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["zig"],"created_at":"2024-08-03T04:00:59.148Z","updated_at":"2025-04-14T10:32:53.762Z","avatar_url":"https://github.com/andrewrk.png","language":"C++","readme":"# zig-window\n\n## My Vision\n\nA window client library. It gives you an API for creating windows, possibly\nfullscreen, a graphics context, and events associated with the windows, such\nas mouse and keyboard input.\n\n * No dependency on libc or any C libraries\n * Cross platform:\n   * X11\n   * Windows\n   * MacOS\n   * Wayland\n * Graphics contexts:\n   * Vulkan\n   * DirectX\n   * Metal\n   * OpenGL\n\n## Current Status\n\nIt's a proof-of-concept of a Vulkan \"Hello World\" triangle, whose binaries\nare portable across different Linux distributions, even ones that have\nnonstandard dynamic linkers.\n\n\"how it works\" writeup is TODO.\n\n### Building\n\nTested with Zig 0.7.0+479f259ea.\n\n```\nzig build -Dtarget=x86_64-linux\npatchelf  --remove-needed libdummy.so.0 zig-cache/bin/static-window\n./zig-cache/bin/static-window\n```\n\nThe `-Dtarget` parameter is important if you want to put the binary up for\ndownloading - this makes Zig target the \"baseline\" CPU instead of using\nthe fancy cool features of your native CPU.\n\nThis should work just fine on other CPU architectures though; for example you\ncould change `x86_64` to `aarch64` for 64-bit ARM.\n\nRemoving the external dependency on `patchelf` is TODO.\n\nReported to work on these systems so far:\n\n * Ubuntu\n * Debian\n * NixOS\n * Arch Linux\n * clearlinux\n * glibc-based void linux\n * musl-based void linux\n\nPlease file an issue if you find that `vkcube` from your package manager works\nbut binaries produced by this project do not.\n","funding_links":[],"categories":["Libraries"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandrewrk%2Fzig-window","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fandrewrk%2Fzig-window","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandrewrk%2Fzig-window/lists"}