by _dain_ · 3y ago · 0 comments
window = make_stupid_simple_undecorated_window(x, y, w, h);
paint_window(window, some_image_buffer);
block_forever();The main difference from CLI is that GUI works reacting to messages, even for (re)painting. Once you get that, the rest falls into place. This is usually implemented with object-oriented libraries, because it's the kind of application where OOP shines. But it's not mandatory.
Oh, and your app should also respond to move, change workspace, minimize... messages.