opentk
opentk copied to clipboard
OpenTK MAUI Control
Description
We should look into creating a MAUI control for OpenTK. I think there might be some issues regarding OpenGL in MAUI as it WinRT only supports DirectX but that is something we'll have to look into.
For a DIY solution to getting OpenTK running in MAUI see #1592.
Hopefully OpenTK could support .NET MAUI GUI.
While you are it please create the control that allows to OpenGL to run on a WinUI3 window, which is also build on top of DirectX. Maybe the same control works in both scenarios.
To bridge the gap while waiting for a MAUI control, this repo provides a great example to get OpenTK 4 running on MAUI/Android successfully. https://github.com/ibluesun/MauiOpenGL
With minimal changes to shaders and addition of #if's to use OpenTK.Graphics.ES30, I was able to reuse a lot of my desktop code. I've tested on Windows as well but not Mac/iOS.