gen

command
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 5, 2013 License: BSD-2-Clause-Views Imports: 8 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL