All it does is open a window that says Hello World.
https://github.com/BuckRogers1965/SDLtut/blob/master/first.c
You compile this program by typying:
gcc `sdl-config --cflags --libs` first.c
Then run the a.out program by typing:
./a.out
https://github.com/BuckRogers1965/SDLtut/blob/master/first++.c
I had to use a c extension on this c++ program because wordpress is retarded.
You compile this program by typying:
g++ `sdl-config --cflags --libs` first++.c
Then run the a.out program by typing:
./a.out
The only difference between the two is that the c++ version uses the bool, true and false keywords, while the c version uses int
and then defines TRUE and FALSE.
I got the original example code from here.
Interestingly the code is .2KB bigger when compiled as C++.
Subscribe to:
Post Comments (Atom)
Progress on the campaign manager
You can see that you can build tactical maps automatically from the world map data. You can place roads, streams, buildings. The framework ...
-
The tent smelled of ozone, sawdust, and cheap miracles. On a rickety stage, a man named Constantine adjusted the frayed cuffs of his tuxedo...
-
So, I saw this kit on Amazon. It seemed too good too be true. The kit was priced right, it was less than 2 dollars for each board. Of co...
-
My plan was to get the most use possible from the $5 raspberry Pi Zero that I managed to get my hands onto by buying a full kit that include...
No comments:
Post a Comment