Documentation ¶
Overview ¶
Package gen is used to generate the golang OpenGL bindings from the latest OpenGL specification. The generator uses the most recent header file downloaded from
www.opengl.org/registry/api/glcorearb.h
Running gl/gen will create a go package that can then be installed and used. Usage:
gen output-directory opengl-spec gen .. glcorearb.h-v4.3
The generated gl source package can be (is expected to be) source controlled since OpenGL specifications aren't updated all that often. Noted exceptions to the binding are:
glDebugMessageCallback glDebugMessageCallbackARB
Thanks to https://github.com/chsc/gogl for the idea of generating the bindings from the specification. Chsc/gogl is likely simpler/better in that it uses the XML based specifications rather than the glcorearb.h.
Click to show internal directories.
Click to hide internal directories.