{"repo":"ikskuh/zig-opengl","free":true,"listed":false,"github":"https://github.com/ikskuh/zig-opengl","clone":"git clone https://github.com/ikskuh/zig-opengl.git","description":"OpenGL binding generator based on the opengl registry","language":"C#","stars":124,"topics":["zig","gamedev","opengl-loader","zig-package","ziglang","opengl","opengl-es"],"license":"EUPL-1.2","category":"game-templates","readme_excerpt":"Zig OpenGL Binding This is a pragmatic binding to different OpenGL versions. It uses the official OpenGL Registry by Khronos to generate the Zig code. Right now, it does minimal adjustments like removing the gl prefix from functions or the GL prefix from constants. Everything else is the same as the C API. There is a single non-OpenGL function exported: This function will load all OpenGL entry points with the help of get proc address . It receives the load ctx as well as the function name. NOTE: Please do not reference zig-opengl as a submodule or a package. Generate a binding and copy the output of that into your repository and update the file on demand. The OpenGL Registry is just too huge to be used conveniently. Cloning submodules is required, so use --recursive : Example This example uses ZWL by @Aransentin. Usage with mach-glfw There is an example of mach-glfw + zig-opengl usage available here: https://github.com/hexops/mach-glfw-opengl-example Pregenerated Loaders This repository contains pre-generated bindings for all extension-free OpenGL versions. Generating your own loader From source To generate your own loader, you have to clone this repository and build the generator with dotnet : Possible feature levels (at the time of writing) are: - GL VERSION 1 0 - GL VERSION 1 1 - GL VERSION 1 2 - GL VERSION 1 3 - GL VERSION 1 4 - GL VERSION 1 5 - GL VERSION 2 0 - GL VERSION 2 1 - GL VERSION 3 0 - GL VERSION 3 1 - GL VERSION 3 2 - GL VERSION 3 3 - GL VERSION 4 0 - GL VERSIO","default_branch":null,"files":null,"tree":[],"storefront":"/r/ikskuh","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/ikskuh/zig-opengl/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}