maxwills's picture

OpenTK 1.1, VB.net and ambiguous functions.

I just downloaded the 1.1 version of opentk, and updated my old project references. It seems that there is some issues with opentk in some function overloads.
I am getting the following error:

Error 1 'Uniform3' is ambiguous because multiple kinds of members with this name exist in class 'OpenTK.Graphics.OpenGL.GL'

VB.net Intellisense fails to recognize any overload of the function. Is there any work around for this? There was no problem with OpenTK 1.0
Uniform1 seems to be fine, however, Uniform2,3, and 4 seems just wrong.


Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
maxwills's picture

I've managed to get it working. I modified the OpenTK source, so each overload of the problematic functions where taken separately. ie: uniform3f, uniform3i, etc. As it is in raw opengl.

the Fiddler's picture

Edit: see my next post.

This is certainly a bug, can you please file a bug report at https://github.com/opentk/opentk/issues?

Thanks.

the Fiddler's picture

After more testing, this is not actually a bug in OpenTK but is due to the way VB.Net chooses function overloads.

I have implemented a workaround in 1c1607d, which appears to make VB.Net work again. This will be part of the 1.1 release on 15 Feb.