go-gl / gl

Go bindings for OpenGL (generated via glow)
MIT License
1.07k stars 74 forks source link

OpenGL ES 3.1 #41

Closed FlorianUekermann closed 8 years ago

FlorianUekermann commented 8 years ago

As suggested in glow issue #67 here is my pull request for OpenGL ES 3.1 bindings.

I have tested this with a fairly standard deferred renderer using some 3.0+ and 3.1+ specific features of the api and have not encountered any problems. I initially planned to generate an "all" versions package (similar to the all-core package for OpenGL) but encountered repeated runtime crashes. I assume this is a driver issue (fglrx), not a go-gl problem, but I did not want to push untested code and decided to stick to 3.1 for now.

The bindings are generated with the latest glow version with todays specification XML files. This resulted in some changes to the non-ES OpenGL packages, which are not included in this pull request, so a "Regenerate" commit may be a good idea before pulling this.

Other ES versions (3.0, 3.2) may follow when I am confident that they work fine.

FlorianUekermann commented 8 years ago

Travis is missing KHR/khrplatform.h I don't have any experience with Travis. How do we solve that?