/* graphics.c: A minimal program to open a grahpics window and draw on it */

#include <stdio.h>
#include <stdlib.h>
#include "graphics.h"


int main(int argc, char* argv[])
{
	if(create_screen(SCREEN_1024x768x24))
	{
		fprintf(stderr, "Cannot create 1024x768x24bpp window!\n");
		exit(1);
	}

	draw_box(0, 0, 320, 240, COLOR_BLUE);
	g_sleep(2);

	destroy_screen();

	return 0;
}
END_OF_MAIN();     /* Needed by Allegro */


/* vim:ts=3
*/
