Misc. Functions




int getVideoMode(void)

returns - One of the standard Allegro GFX_ modes

Retrieves the current video mode, which is one of the standard
Allegro video modes (i.e. one of the GFX_ modes).



unsigned int getTileW(void)

returns - The width in pixels of the tiles in the map file.





unsigned int getTileH(void)

returns - The height in pixels of the tiles in the map file.




unsigned int getResX(void)

returns - the current screen resolution width in pixels




unsigned int getResY(void)

returns - the current screen resolution height in pixels





void setPalette(void)

Sets the color palette to that defined in the loaded map file's
resource file.