1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
|
#include <allegro.h>
#include "System.h"
int main()
{
System system;
System.Setup();
BITMAP *buffer = create_bitmap( 640, 480 );
while ( !key[KEY_ESC] )
{
rectfill(buffer, 0, 0, 640, 480, makecol(255, 0, 0));
blit( buffer, screen, 0, 0, 0, 0, 640, 480 );
clear_bitmap( buffer );
}
destroy_bitmap( buffer );
return 0;
}
END_OF_MAIN();
|