go-gl-legacy / gl

Go bindings for OpenGL
BSD 3-Clause "New" or "Revised" License
342 stars 52 forks source link

How are extensions handled (on OS X)? #162

Open tildeleb opened 10 years ago

tildeleb commented 10 years ago

I would like to add support for: gl.MAX_TEXTURE_MAX_ANISOTROPY_EXT gl.TEXTURE_MAX_ANISOTROPY_EXT

This has to be one of the simplest extensions to add, just two constants. It was first implemented in 1999 on the GeForce 256 and should be available on almost every chip in use today.

I don't see support for any other EXT extensions or ARB extensions other than ARB DEBUG. I looked at previous issues and didn't see much information about the policy or technical issues with extensions.

What's the right approach and what don't I know before I try to add support?

dmitshur commented 9 years ago

I would recommend using the bindings at https://github.com/go-gl/gl. They already have both of those extensions (and many more).