Hello, I was wondering why all the enums are defined within their own class?
Seeing as the names are guanteed to be unique why can't the enums be declared in the global OpenGL namespace? Or alternatively, if they have to go inside a separate scope, why can't the Enum class instead be a namespace?
Putting them inside a class of course forces people to write things like the following:
GL.Clear(GL.Enums.ClearBufferMask.COLOR_BUFFER_BIT | GL.Enums.ClearBufferMask.DEPTH_BUFFER_BIT);
which ends up longer than the equivalent Tao version:
Gl.glClear(Gl.GL_COLOR_BUFFER_BIT | Gl.GL_DEPTH_BUFFER_BIT);
albeit with a few less gls.
Personally, I'd ideally like to be able to write something like:
GL.Clear(ClearBufferMask.ColorBufferBit | ClearBufferMask.DepthBufferBit);
On a slightly related note, how come the enum values are still upper case? After all, you've removed the GL_ prefix, so why not go all the way and make them fit a bit more nicely with standard .NET names?
I realise I'm probably way too late to the discussion for any changes to be made, but I thought I'd mention it all the same.