Skip to content
OpenGL binding generator for Go
Go
Latest commit c411acc Nov 11, 2013 @chsc Merge pull request #33 from garyburd/patch-1
Update documentation links in README.mkd
Failed to load latest commit information.
amd Missing constants added. Jan 20, 2013
arb New command line interface Feb 4, 2013
ati Missing constants added. Jan 20, 2013
examples/gopher Depth buffer fixed for gopher example Oct 11, 2012
ext Missing constants added. Jan 20, 2013
gl21 Missing constants added. Jan 20, 2013
gl32 GL 3.2 bindings Jul 21, 2013
gl33 Spec update + GL 4.3 package Feb 2, 2013
gl42 Spec update + GL 4.3 package Feb 2, 2013
gl43 Fix for debug callbacks in GL 4.3 Feb 3, 2013
glx Spec update + GL 4.3 package Feb 2, 2013
nv Missing constants added. Jan 20, 2013
wgl Missing constants added. Jan 20, 2013
.gitattributes Normalize line endings Dec 26, 2012
.gitignore .gitignore added Dec 3, 2011
AUTHORS.mkd authors an license file added Oct 23, 2011
LICENSE.mkd authors an license file added Oct 23, 2011
Makefile New command line interface Feb 4, 2013
README.mkd Update documentation links in README.mkd Nov 11, 2013
download.go New command line interface Feb 4, 2013
enumreader.go Some more work on glx/wgl extension loading Aug 10, 2012
enumreader_test.go Some fixes + Gofmt Dec 13, 2011
funcreader.go New command line interface Feb 4, 2013
funcreader_test.go Documentation updates for Go 1 Apr 1, 2012
generator.go Prefixes added for wgl/glx code gen Aug 20, 2012
group.go Spec update + GL 4.3 package Feb 2, 2013
group_test.go Some fixes + Gofmt Dec 13, 2011
main.go New command line interface Feb 4, 2013
structs.go
structs_test.go
tmreader.go New command line interface Feb 4, 2013
tmreader_test.go Unit test for type map reader extended. Dec 13, 2011
util.go Missing constants added. Jan 20, 2013
util_test.go

README.mkd

GoGL

GoGL is an OpenGL binding generator for Go. No external dependencies like GLEW are needed.

Install the OpenGL bindings

For example, OpenGL 2.1 bindings can be installed using the go command:

go get github.com/chsc/gogl/gl21

Documentation

Khronos documentation:

Package documentation:

GoGL specific docs and usage examples:

Examples

To test the installed bindings, build and install the "spinning gopher" example:

go get github.com/chsc/gogl/examples/gopher

and run it from your command line.

Manually build & install the binding generator

If you want to create your own bindings:

clone the repository:

git clone http://github.com/chsc/gogl.git

or use the go command:

go get github.com/chsc/gogl

To generate the bindings (the fast way), simply type:

make bindings

This will download, build and install the latest OpenGL bindings.

Use

gogl -help

for more information about GoGL's command line arguments.

Corrected spec files

The original spec files from Khronos have errors in them. Jason McKesson (alfonse) maintains corrected spec files in his bitbucket repository. You can find them here: GL XML Specs.

TODO

  • Better spec parser
  • ...
Something went wrong with that request. Please try again.