←back to thread

Hands-On Graphics Without X11

(blogsystem5.substack.com)
166 points ingve | 5 comments | | HN request time: 1.613s | source
Show context
synergy20 ◴[] No.42745370[source]
i think that's what sdl provides? except sdl can do more
replies(1): >>42745726 #
1. incanus77 ◴[] No.42745726[source]
No, SDL provides a window/context in the existing windowing layer.
replies(3): >>42746778 #>>42747583 #>>42748084 #
2. jpc0 ◴[] No.42746778[source]
SDL does not need a windowing layer... There might be better docs somewhere but this should act as enough proof for you without linking directly to the source code.

https://wiki.libsdl.org/SDL2/SDL_HINT_KMSDRM_REQUIRE_DRM_MAS...

replies(1): >>42754042 #
3. bregma ◴[] No.42747583[source]
SDL can provide a context in the native windowing system, if you ask it to. Or not. You have to ask for it though, it's not the default.
4. synergy20 ◴[] No.42748084[source]
I think sdl works directly with fb when using fb as a backend,no windows system is needed
5. incanus77 ◴[] No.42754042[source]
Thank you, I stand corrected! I had used it in the windowing sense and didn’t recall the other option!