{"id":19703863,"url":"https://github.com/darkfllame/zig3d","last_synced_at":"2026-01-18T03:19:32.029Z","repository":{"id":224246542,"uuid":"762796325","full_name":"Darkfllame/Zig3D","owner":"Darkfllame","description":"A bindings library for writing 3D/2D apps and games in Zig !","archived":false,"fork":false,"pushed_at":"2024-06-19T16:06:41.000Z","size":1285,"stargazers_count":2,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-04T19:16:15.630Z","etag":null,"topics":["2d","3d","3d-graphics","bindings","freetype","game-development","glfw","opengl","stb-image","zig"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Darkfllame.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-02-24T18:02:37.000Z","updated_at":"2024-06-19T16:06:45.000Z","dependencies_parsed_at":"2024-06-10T15:42:42.597Z","dependency_job_id":"00adc3b2-1c54-4946-ba8a-9c6b334b549f","html_url":"https://github.com/Darkfllame/Zig3D","commit_stats":null,"previous_names":["darkfllame/zig-glad-glfw"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Darkfllame/Zig3D","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Darkfllame%2FZig3D","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Darkfllame%2FZig3D/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Darkfllame%2FZig3D/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Darkfllame%2FZig3D/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Darkfllame","download_url":"https://codeload.github.com/Darkfllame/Zig3D/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Darkfllame%2FZig3D/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28528036,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-18T00:39:45.795Z","status":"online","status_checked_at":"2026-01-18T02:00:07.578Z","response_time":98,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["2d","3d","3d-graphics","bindings","freetype","game-development","glfw","opengl","stb-image","zig"],"created_at":"2024-11-11T21:19:16.905Z","updated_at":"2026-01-18T03:19:32.005Z","avatar_url":"https://github.com/Darkfllame.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Zig3D\n\nThe Zig3D library is maintaned by [me](https://github.com/Darkfllame/) and is made to make 3D games. It provides the user bindings to the glfw, glad, stb libraries and others. The functions are adapted to the Zig conventions and avoid using C strings in profit of slices (and thus a lot of memory allocation sorry).\n\n## How to use\n\nTo use this library you have to fetch it with zig: `zig fetch --save https://github.com/Darkfllame/Zig3D/archive/\u003ccommit\u003e.tar.gz`, replace `\u003ccommit\u003e` by the commit hash of you choice or replace it with `main` (or `master`, the two works the same) for the latest update.\n\n##\n\nAfter adding the dependency, you'll need to add:\n\n```zig\nconst zig3d = b.dependency(\"zig3d\", .{\n  .optimize = optimize,\n  .target = target,\n  // if you're on windows this wont work, look at this [issue](https://github.com/Darkfllame/Zig3D/issues/1) for more infos\n  .shared = false,\n  .exposeC = true, // optional, set whether to expose c apis under a \"capi\" namespace. This is for glad, glfw, stb and freetype (even though freetype is always exposed since I did not make the zig API yet)\n});\n\n...\n\nexe.root_module.addImport(\"zig3d\", zig3d.module(\"zig3d\"));\n```\n\nto your `build.zig` file.\n\n##\n\nYou can check out the [demos](examples/) for examples on how to use the library.\n\n**Notes**:\n\n- There is low (almost no) documentation, so you'll need to check out on khronos group's site for errors and what parameters do.\n- Most of the library is entirely compiled using zig, so you can expect slow compilation especially when first build.\n- Expect bugs, the library is pretty recent and I'm litteraly going back and forth with this one (I do multiple projects at once, dumb me)\n\n## Help me I guess.\n\nFeel free to use, test it and give me ideas for this, you can also help me by proposing [pull requests](https://github.com/Darkfllame/Zig3D/pulls).\n\n## Now on 0.12.0\n\nNow works on zig 0.12.0, probably will update it further more on more recent zig updates.\n\n## Little things so I don't get sued\n\nAlso thanks to mach-engine's dev(s?) for zig support on GLFW and freetype, big mwah\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdarkfllame%2Fzig3d","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdarkfllame%2Fzig3d","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdarkfllame%2Fzig3d/lists"}