-
Notifications
You must be signed in to change notification settings - Fork 71
Open
Description
In the Settlement experiments I realized that a nice windowing mechanism may be implemented by using the cairo drawing library (in use in GTK+, etc.) to draw the GUI to an image buffer. Then a simple UI stack wraps these image buffers as windows and displays their contents. This is about the same as your everyday OS does it.
Cairo has the advantage that it provides beautiful antialiased rendering and is in general faster than redrawing the whole GUI every frame with OpenGL. GUI rendering may even be moved to its own thread!