Enough of these line drawings: let’s have something pretty.
Images and changing window characteristics
Let’s start by displaying an image, using the code in Example
2-1.
//Program to show an image on the screen
// -- from _C++ for Lazy Programmers_
int main (int argc, char **argv)
{
//Show image
const SSDL_Image BEACH = SSDL_LoadImage ("beach.jpg");
SSDL_RenderImage(BEACH, 0, 0);
Example 2-1Displaying an image
This program loads an image called beach.jpg and shows it at location 0, 0 on the screen.
That’s it.
C++ ...