Search code examples
c#raspberry-piconsole-applicationopentk

C# OpenTK - Linux Console without X11


I was just wondering if it is possible to render the OpenTK gamewindow in a Linux Console (Raspberry Pi Raspbian) without any X11 Desktop?

If it possible, how do you do it?


Solution

  • Yes, it's experimental since 1.1 or 1.2. Adjust OpenTK.dll.config if some dll could not be found, and maybe you'll have to find correct libinput version (libinput-0.2.0 is working on my debian) to match api binding in opentk. I'm not fully sure, but I think that it's only working with modern GL (>3.0). Ensure you have libdrm, libgbm and correct libinput on your system and latest mesa.

    OpenTK will automaticaly detect linux console environment if program is launched from a console. If you face trouble finding missing dll's, enable full debug messages in Otk.