luca-piccioni / OpenGL.Net

Modern OpenGL bindings for C#.
MIT License
568 stars 108 forks source link

GetPName enum is missing "ActiveTexture" #109

Closed mode777 closed 6 years ago

mode777 commented 6 years ago

I just noticed that the strongly typed enum GetPName, which is used e.g. in the Gl.GetInteger is missing a value for ActiveTexture (possibly others as well).

Reference: https://www.khronos.org/registry/OpenGL-Refpages/es2.0/xhtml/glGet.xml

Is there a reason for this omission? Is there a better way to query these values? Otherwise I would submit a pull request but the code seems to be auto generated.

frabert commented 6 years ago

Missing enumerations and overloads are to be filled in here: https://raw.githubusercontent.com/luca-piccioni/OpenGL.Net/master/GLSpecs/gl.xml

You could also consider submitting a PR to the OpenGL Registry

mode777 commented 6 years ago

Thx for the explanation!

Done: https://github.com/KhronosGroup/OpenGL-Registry/pull/193

luca-piccioni commented 6 years ago

@mode777 If you want to solve it quickly, just cast the raw enumeration value (GL_) to the strongly typed enumeration type. It just works. However, issuing to the OpenGL Registry is the best option.