11.4. "Hello, world!" with SDL
To introduce SDL, let's work through a simple program to display Hello, world!, monitor the keyboard, and exit gracefully when the spacebar is pressed (see Figure 11-8).
This program is on the Laddie CD; before looking at the details, we recommend building and running the program. Boot the Laddie CD and, after the framebuffer UI loads, exit by pressing ESC.
Figure 11-8. "Hello, world!" with SDL
Note:
It's important that the framebuffer isn't running, because it would interfere with our current example. Incidentally, if the framebuffer UI didn't start automatically when you booted the CD, you may have problems with your ...
Get Linux Appliance Design now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.