/* graphics.c */

#include <stdlib.h>

#include "DeskLib:Error.h" /* error reporting */
#include "DeskLib:File.h" /* stdio functions are too arcane */

#include "graphics.h"

graphic *graphics_pool;

void graphics_load(char *filename)
{
  graphics_pool = malloc(File_Size(filename));
  /* It's only a game, I can't be bothered to check for memory shortage */
  Error_CheckFatal(File_LoadTo(filename,graphics_pool,NULL));
}
