{"id":21569268,"url":"https://github.com/zig-gamedev/zopengl","last_synced_at":"2025-06-21T17:34:24.282Z","repository":{"id":264396124,"uuid":"882858810","full_name":"zig-gamedev/zopengl","owner":"zig-gamedev","description":"OpenGL loader and bindings for Zig.","archived":false,"fork":false,"pushed_at":"2025-03-11T21:18:04.000Z","size":163,"stargazers_count":6,"open_issues_count":3,"forks_count":10,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-24T12:47:49.497Z","etag":null,"topics":["gamedev","opengl","opengl-bindings","opengl-loader","opengl-wrapper","opengles","zig"],"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/zig-gamedev.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-11-03T23:34:16.000Z","updated_at":"2025-03-12T00:03:42.000Z","dependencies_parsed_at":"2025-03-06T08:22:30.324Z","dependency_job_id":"21d45909-53b1-4e66-9674-813993ffb410","html_url":"https://github.com/zig-gamedev/zopengl","commit_stats":null,"previous_names":["zig-gamedev/zopengl"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zig-gamedev%2Fzopengl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zig-gamedev%2Fzopengl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zig-gamedev%2Fzopengl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zig-gamedev%2Fzopengl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zig-gamedev","download_url":"https://codeload.github.com/zig-gamedev/zopengl/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248231854,"owners_count":21069415,"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":["gamedev","opengl","opengl-bindings","opengl-loader","opengl-wrapper","opengles","zig"],"created_at":"2024-11-24T11:09:02.437Z","updated_at":"2025-04-10T14:06:07.086Z","avatar_url":"https://github.com/zig-gamedev.png","language":"Zig","funding_links":[],"categories":[],"sub_categories":[],"readme":"# [zopengl](https://github.com/zig-gamedev/zopengl)\n\nOpenGL loader, bindings and optional wrapper for Zig.\n\nSupports:\n  * OpenGL Core Profile up to version 4.3\n  * OpenGL ES up to version 2.0\n\n## Getting started\n\nExample `build.zig`:\n\n```zig\npub fn build(b: *std.Build) void {\n    const exe = b.addExecutable(.{ ... });\n\n    const zopengl = b.dependency(\"zopengl\", .{});\n    exe.root_module.addImport(\"zopengl\", zopengl.module(\"root\"));\n}\n```\n\nNow in your code you may import and use `zopengl`:\n\n```zig\nconst zopengl = @import(\"zopengl\");\n\npub fn main() !void {\n    // Create window and OpenGL context here... (you can use our `zsdl` or `zglfw` libs for this)\n\n    try zopengl.loadCoreProfile(getProcAddress, 4, 0);\n\n    const gl = zopengl.bindings; // or zopengl.wrapper (experimental)\n\n    gl.clearBufferfv(gl.COLOR, 0, \u0026[_]f32{ 0.2, 0.4, 0.8, 1.0 });\n}\n\nfn getProcAddress(name: [:0]const u8) ?*const anyopaque {\n    // Load GL function pointer here\n    // You could use `zsdl.gl.getProcAddress() or `zglfw.getProcAddress()`\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzig-gamedev%2Fzopengl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzig-gamedev%2Fzopengl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzig-gamedev%2Fzopengl/lists"}