luca-piccioni / OpenGL.Net

Modern OpenGL bindings for C#.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Support for Xamarin/iOS

alcarvalho opened this issue · comments

It seems that iOS support on Xamarin was mentioned in #16 but I couldn't find any further mentions to it. Are there any plans to do it? Would it be hard?

Personally I'm not planning to support iOS with Xamarin for the simple reason I don't have any MacOS/Xcode/iOS. Indeed I can't validate any implementation on it.

Would it be hard? I don't think so, it would be sufficient to create a DeviceContext implementation that support AGL (or any UI backbone) that offers the GL context creation, and compatible function pointer loader. After that, GL interface is still valid and usable.

Thank you, @luca-piccioni! I'll try to contribute this to the project if you think it's a good idea.
I'm just starting with Xamarin and .NET platforms in general, so this might be a stupid question: why then I can't even use the platform agnostic NuGet in my iOS part of a Xamarin shared project?

I was hoping I could at least leverage the multi-platform portion of it like you described.