Does anyone know how to use OpenGL functions with SKGLView in MAUI? #34482
reverser-dev
started this conversation in
Upgrading from Xamarin
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
I have a 3D graphics legacy project built with Visual Studio in C# that makes use of Xamarin Forms and OpenTK. It targets both Android and iOS but the recent introduction of a requirement for 16kb page size support by Google Play, coupled with the end of Xamarin support is now forcing me to find an alternative solution.
I'd be happy to move to MAUI (as recommended) but there doesn't seem to be a suitable OpenGL component available anywhere. I have experimented with the SkiaSharp SKGLView in MAUI, successfully using SKCanvas to draw 2D graphics.
However, I want to make use of the underlying OpenGL context (GL) to draw in 3D, so I can reuse my existing C# OpenGL code. Is it possible to bind this context to the window associated with SKGLView (or SKGLCanvas)? If it is, how do I do it? If not, does anyone have an alternative solution?
All reactions