Quantcast
Channel: Xamarin.Mac — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 1429

Issues with using OpenTK after update of Xamarin.Mac

$
0
0

I've been working on a Mac program that uses OpenTK for a while now. I've recently updated to Xamarin.Mac 3.2.0.175. After updating, the following code gives an error:

Error CS0433: The imported type `OpenTK.Matrix4' is defined multiple times (CS0433)

using System;
using OpenTK;
namespace MyMac
{
    public interface IOpenGLObject:IDisposable
    {
        void Init();
        void Render(Matrix4 model_view_projection_matrix);
    }
}

I have included the OpenTK package as I need to have its functionality. However, I noticed that when I use the assembly browser that Xamarin.Mac also contains a definition of OpenTK, which is significantly more reduced than the OpenTK package. Was this already there in previous Xamarin.Mac versions? Is there a work around such that I can still use the full OpenTK library?


Viewing all articles
Browse latest Browse all 1429

Trending Articles