dotnet / Silk.NET

The high-speed OpenGL, OpenCL, OpenAL, OpenXR, GLFW, SDL, Vulkan, Assimp, WebGPU, and DirectX bindings library your mother warned you about.
https://dotnet.github.io/Silk.NET
MIT License
4.13k stars 397 forks source link

Support for Xamarin Forms OpenGLView #345

Closed btschumy closed 1 year ago

btschumy commented 3 years ago

Summary of feature

I would like to be able to use Silk.NET in the Xamarin Forms OpenGLView class

Comments

Right now I don't see the necessary hooks in OpenGLView to be able to use Silk. ULTZ Perksey indicated that "Yeah you’ll have to implement IGLContext yourself seeing as Silk.NET doesn’t have a dedicated extension package for it yet". I don't think this is currently possible and he ask me to log a request.

Does this have a proposal?

No

btschumy commented 3 years ago

I will also comment that there is currently no way of doing 3D graphics for iOS, Android, and UWP in a Xamarin Forms app. UrhoSharp (C# bindings to Urho3D) used to be recommended but the project has been abandoned by Microsoft and It has numerous problems on UWP.

If Silk.NET could be made to work in Xamarin Forms, I'm sure it would be greatly appreciated by many developers.

Perksey commented 3 years ago

This is certainly something we want to investigate. Today Silk.NET may only be used on mobile via Xamarin Native instead of Forms.

btschumy commented 3 years ago

Is there some example code using Silk.NET on Xamarin Native? I'm thinking it could be adapted to Xamarin Forms by using a native renderer.

Perksey commented 3 years ago

There is only an Android test application today. Silk.NET has its own dedicated Android Activity: https://github.com/Ultz/Silk.NET/tree/2.0/src/Lab/TriangleDroid

freever commented 3 years ago

Hello there... is there any change to this following the 2.0 release?

Perksey commented 3 years ago

Currently not, personally I want to just hold out for Silk.NET 3.0, .NET 6, and MAUI.

freever commented 3 years ago

Yeah, MAUI is really lacking a 3D story. UrhoSharp used to be the go-to but now it's just crickets.

Perksey commented 1 year ago

Closing in favour of #849