luca-piccioni / OpenGL.Net

Modern OpenGL bindings for C#.
MIT License
568 stars 108 forks source link

Support for Xamarin/iOS #99

Open alcarvalho opened 6 years ago

alcarvalho commented 6 years ago

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?

luca-piccioni commented 6 years ago

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.

alcarvalho commented 6 years ago

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.