luca-piccioni / OpenGL.Net

Modern OpenGL bindings for C#.
MIT License
578 stars 109 forks source link

GL methods overload problem in VB.net #12

Closed vsantalov closed 8 years ago

vsantalov commented 8 years ago

Method overloading differences between C# and VB.Net cause errors in VB.Net. To VB byRef and byVal do not differentiate the function and an ambiguous member error occurs.

luca-piccioni commented 8 years ago

Sorry, but CLS compliance is not a requirement for me. If you're able to contribute by building a CLS compliant OpenGl.Net version, you're welcome.

luca-piccioni commented 8 years ago

Sure the issue affect few dozen of methods because case sensitivity; for example, glClear is confused with _GLCLEAR. Can you be more specific for your case(s)? I don't remember that overloads are differentiated by argument attributes.

In any case, I've added a VB.Net sample in the last commit, so you'll find a working example.