luca-piccioni / OpenGL.Net

Modern OpenGL bindings for C#.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

New enumerations for various function options

frabert opened this issue · comments

In the spirit of creating a safe interface to OpenGL, I think the number of currently generated enumerations is too slim; for example, when using FramebufferRenderbuffer It would be nice to use an enumeration to specify the attachment, like BufferAttachment.ColorAttachment0 instead of Gl.COLOR_ATTACHMENT0.

On a bit of a side note, since I am willing to provide some such improvements but I don't really know where to start, could you provide something like a guideline on how to make such additions?

Keep up the great work 👍

Just updated the wiki page, describing how to re-generate OpenGL.Net. You can see my issue for adding strongly typed arguments, and my issue for updating/extending enumerations values (and you should close your issue, because resolved by my pull request).

You could follow my pull request as model for directly pulling changes to KhronosGroup/OpenGL-Registry, and pulling same changes in OpenGL.Net. Then, following the instruction on the wiki, update the API.

Thanks, I will have a read!