In this tutorial, we are going to create a simple paint program that just draws black lines.
Content:
Creating a window
Introduction to graphics context
Drawing points, drawing lines
Catching multiple events including mouse motion
Setting our program a title name
Setting wm hints to make our window non-resizable (checking out dwm source code)
Source code: [ Ссылка ]
X11, linux, xorg, Xwindow system, C, display server
Ещё видео!