opentk icon indicating copy to clipboard operation
opentk copied to clipboard

OpenTK MAUI Control

Open NogginBops opened this issue 2 years ago • 3 comments

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.

NogginBops avatar Jul 14 '23 13:07 NogginBops

Hopefully OpenTK could support .NET MAUI GUI.

tounaobun avatar Nov 28 '23 05:11 tounaobun

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.

gmgallo avatar Mar 20 '24 16:03 gmgallo

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.

mludlum avatar Jun 24 '24 13:06 mludlum