There’s no more reliable way to disabuse someone of the idea that X11 is worth saving than to have them write a modern GL app without any frameworks, only raw GLX/Xlib.
-
Show this thread
-
Replying to @pcwalton
I'm doing it! https://github.com/andrewrk/zig-window/blob/ee7006708697a764f0dc93690d3e325fbd5657a6/example/nox.zig … I don't have a window open yet.
1 reply 0 retweets 8 likes -
Replying to @andy_kelley
I feel your pain :) Feel free to crib from the library I’m working on: https://github.com/pcwalton/surfman/tree/master/surfman/src/platform/unix/x11 … This is ultimately based on Firefox’s code.
1 reply 0 retweets 4 likes -
Replying to @pcwalton
I see this is using Xlib. Is it true that applications are forced to use Xlib (rather than, say, assembly that speaks the X protocol) due to the gl/vulkan drivers being loaded as dynamic libraries with dynamic link dependencies on Xlib?
1 reply 0 retweets 0 likes -
Replying to @andy_kelley
https://xcb.freedesktop.org/opengl/ has a good explanation
1 reply 0 retweets 2 likes -
Replying to @pcwalton
OK my project is doomed then. I had bigger hopes. Thanks for the link. Does Wayland solve this?
1 reply 0 retweets 0 likes
Well, Wayland doesn’t use Xlib or XCB, so the problem doesn’t really apply.
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.