Posted Nov 6, 2010 16:46 UTC (Sat) by rleigh (subscriber, #14622)
Parent article: LPC: Life after X
While I find work such as Wayland very exciting and a logical step in supporting modern graphics hardware, I do wonder if we can take proper advantage of it with contemporary GUI toolkits.
While GTK+ is nominally portable, it's really just a thin abstraction over XLib; all the widgets are deeply tied into using X internals (GdkEvent/XEvent event handling, expose events and partial redraws etc., for example) which would be mostly redundant in an OpenGL context where widgets would be represented in a scene graph. While I'm sure it could be converted to use OpenGL, I do wonder how efficient it would be compared with writing a new toolkit from the ground up which used abstractions which map directly to what OpenGL can support efficiently, since [X]Window/GdkWindow drawing is basically tied to 2D rectangles. I understand Qt is part way there already with this, but I don't have the same experience with its internals.