home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Game Programming - All in One (3rd Edition)
/
game_prog_all_in_one_3rd_ed.iso
/
sources
/
chapter02
/
Test_DevCpp
/
main.cpp
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
C/C++ Source or Header
|
2006-08-17
|
363 b
|
14 lines
#include <allegro.h>
int main(void) {
allegro_init();
set_gfx_mode(GFX_SAFE, 640, 480, 0, 0);
install_keyboard();
textout_ex(screen, font, "Hello World!", 1, 1, 10, -1);
textout_ex(screen, font, "Press ESCape to quit.", 1, 12, 11, -1);
while(! key[KEY_ESC]) { };
allegro_exit();
return 0;
}
END_OF_MAIN()