| CODE |
#include <allegro.h> int main() { allegro_init(); set_gfx_mode(GFX_SAFE, 640, 480, 0, 0); install_keyboard(); textout (screen, font , "Allegro is working! o yea and HELLO WORLD!", 1, 1, 10); while (! key[KEY_ESC]) poll_keyboard(); allegro_exit(); return 0; } END_OF_MAIN(); |
| CODE |
g++ test.cpp |
| CODE |
main.cpp:28: warning: `textout' is deprecated (declared at |
| CODE |
/usr/include/allegro/alcompat.h:169) |
| CODE |
| textout (screen, font , "Allegro is working! o yea and HELLO WORLD!", 1, 1, 10); |
| CODE |
| texout_ex(screen,font,"Allegro is working! o yea and HELLO WORLD!",1,1,10,-1); |