Bit of a mouthful. This loads OpenGL symbols in Zig on macOS so you can pass it to gl.load(...)
.
Use it with https://github.com/MasterQ32/zig-opengl and a windowing system of your choice (e.g. GTK).
Loosely adapted from Apple Docs: https://developer.apple.com/library/archive/documentation/GraphicsImaging/Conceptual/OpenGL-MacProgGuide/opengl_entrypts/opengl_entrypts.html#//apple_ref/doc/uid/TP40001987-CH402-SW6
License: Whatever you want (CC-0/Public Domain/Unlicense/etc)
const dyld = @cImport(@cInclude("mach-o/dyld.h"));