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++.
A blog devoted to challenging dogma, where ever and who ever is shoveling it.
Subscribe to:
Post Comments (Atom)
Update on the Campaign Manager
Got overlays working, got local map ai updates working. Later tonight will get ai using overlays in the dungeon working to generate the det...
-
The tent smelled of ozone, sawdust, and cheap miracles. On a rickety stage, a man named Constantine adjusted the frayed cuffs of his tuxedo...
-
J. Rogers, SE Ohio Abstract Database query optimization is traditionally approached through indexing strategies, statistics updates, and har...
-
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...
No comments:
Post a Comment