{"id":13626653,"url":"https://github.com/ziglibs/zgl","last_synced_at":"2025-05-15T13:04:11.285Z","repository":{"id":37042195,"uuid":"276904717","full_name":"ziglibs/zgl","owner":"ziglibs","description":"Zig OpenGL Wrapper","archived":false,"fork":false,"pushed_at":"2025-03-12T23:12:09.000Z","size":277,"stargazers_count":482,"open_issues_count":4,"forks_count":67,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-04-07T17:04:10.009Z","etag":null,"topics":["bindings","zig","zig-package","ziglang"],"latest_commit_sha":null,"homepage":"","language":"Zig","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/ziglibs.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","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},"funding":{"github":"MasterQ32"}},"created_at":"2020-07-03T13:19:40.000Z","updated_at":"2025-04-07T06:43:47.000Z","dependencies_parsed_at":"2024-02-08T08:29:03.430Z","dependency_job_id":"5a0a6238-7979-4189-95fb-e47f0cb1e73f","html_url":"https://github.com/ziglibs/zgl","commit_stats":{"total_commits":121,"total_committers":43,"mean_commits":2.813953488372093,"dds":0.884297520661157,"last_synced_commit":"f170f34d1ed7a00aa6a2a00aafba40b661896010"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ziglibs%2Fzgl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ziglibs%2Fzgl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ziglibs%2Fzgl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ziglibs%2Fzgl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ziglibs","download_url":"https://codeload.github.com/ziglibs/zgl/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248961192,"owners_count":21189991,"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":["bindings","zig","zig-package","ziglang"],"created_at":"2024-08-01T21:02:25.629Z","updated_at":"2025-04-14T20:58:02.574Z","avatar_url":"https://github.com/ziglibs.png","language":"Zig","readme":"# ZGL – Zig OpenGL Bindings\n\nThis library provides a thin, type-safe binding for OpenGL.\n\n## Example\n\n```zig\n// Use classic OpenGL flavour\nvar vao = gl.createVertexArray();\ndefer gl.deleteVertexArray(vao);\n\n// Use object oriented flavour\nvar vertex_buffer = gl.Buffer.create();\ndefer vertex_buffer.delete();\n```\n\n## Installation\n\nAdd zgl to your `build.zig.zon` with the following command:\n\n`zig fetch --save https://github.com/ziglibs/zgl/archive/[commit_hash].tar.gz`\n\nReplace [commit_hash] with the latest commit or tagged release.\n\nThen add the following to your `build.zig`:\n\n```zig\nconst zgl = b.dependency(\"zgl\", .{\n    .target = target,\n    .optimize = optimize,\n});\nexe.root_module.addImport(\"zgl\", zgl.module(\"zgl\"));\n```\n\nThen import it with `const gl = @import(\"zgl\");`, and build as normal with `zig build`.\n\n## Development Philosophy\n\nThis library is developed incrementally. That means that functions and other things will be included on-demand and not just for the sake of completeness.\n\nIf you think a function is missing, fork the library, implement the missing function similar to the other functions and make a pull request. Issues that request implementation of missing functions will be closed immediatly.\n\n## Generated Bindings\n\nThis library includes OpenGL 4.5 bindings, generated by [zig-opengl](https://github.com/MasterQ32/zig-opengl). Bindings for a different version may be substituted by replacing [binding.zig](src/binding.zig).\n","funding_links":["https://github.com/sponsors/MasterQ32"],"categories":["Zig","Libraries","Multimedia \u0026 Graphics"],"sub_categories":["Graphics Library"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fziglibs%2Fzgl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fziglibs%2Fzgl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fziglibs%2Fzgl/lists"}