Share via

How to use OpenGL functions with SKGLView in MAUI

Mr B 0 Reputation points
2026-03-15T14:59:02.13+00:00

Does anyone know how to use OpenGL functions with SKGLView in MAUI?

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?

Developer technologies | .NET | .NET MAUI
0 comments No comments

2 answers

Sort by: Most helpful
  1. Nancy Vo (WICLOUD CORPORATION) 1,985 Reputation points Microsoft External Staff Moderator
    2026-03-16T10:05:16.8666667+00:00

    Hi @Mr B ,

    Thank you for reaching out.

    OpenGL is deprecated (base on this). Apple does not build new stuff on this and they may remove it in the future. This API can keep working for years so it does not mean your app will stop working now.

    I recommend these below approach:

    • For Apple: Metal is Apple’s modern graphics API for GPU work on Apple platforms, so moving your iOS renderer to Metal is the future-facing path.
    • For Android: On Android, OpenGL ES is still supported, you can keep this to reduce rewrite effort. (Android OpenGL ES

    While these links are non-Microsoft links, they are official Apple and Android documentations and are safe to visit.

    Hope this helps. If you found my response helpful or informative, I would greatly appreciate it if you could follow this guidance provide feedback. Thank you.


  2. Bruce (SqlWork.com) 83,666 Reputation points
    2026-03-15T16:26:40.92+00:00

    Also OpenGL support is deprecated in IOS.

    https://developer.apple.com/documentation/opengles


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.