Headless Linux Support? #730
-
Hey everyone, I'm trying to put together an OpenGL Dotnet Core app that runs on headless Linux (AWS EC2/nvidia Tesla although that shouldn't matter) and Silk.NET looks like it could be a good choice. This old blog from nvidia suggests that I need to call a few EGL functions ( Is EGL supported in Silk.NET? I couldn't find any references to the required functions in the repo. Does Silk.NET.EGL live in a separate repo? I couldn't find an API reference for it either. Thanks and Merry Christmas, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
We use GLFW and SDL under-the-hood. Supposedly, there's a way you can get GLFW to use EGL. On GLFW I found this: GLFW_CONTEXT_CREATION_API which I will promote to an issue to expose this hint. We silently dropped our official EGL bindings during the 2.0 transition because we weren't using them and neither were our users, so it was unnecessary maintenance cost. We don't intend to bring them back until at least 3.0 (currently in the design stage, and not in active development yet) For now, try using this workaround: GlfwWindowing.Use();
GlfwProvider.GLFW.Value.WindowHint(WindowHintContextApi.ContextCreationApi, ContextApi.EglContextApi);
var window = Window.Create(WindowOptions.Default with { ... }); |
Beta Was this translation helpful? Give feedback.
We use GLFW and SDL under-the-hood. Supposedly, there's a way you can get GLFW to use EGL.
On GLFW I found this: GLFW_CONTEXT_CREATION_API which I will promote to an issue to expose this hint.
We silently dropped our official EGL bindings during the 2.0 transition because we weren't using them and neither were our users, so it was unnecessary maintenance cost. We don't intend to bring them back until at least 3.0 (currently in the design stage, and not in active development yet)
For now, try using this workaround: