Skip to content

Headless Linux Support? #730

Answered by Perksey
afinetapestry asked this question in Q&A
Dec 22, 2021 · 1 comments · 2 replies
Discussion options

You must be logged in to vote

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 {

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@afinetapestry
Comment options

@Perksey
Comment options

Answer selected by Perksey
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants