#ifndef _UTIL
#define _UTIL


////////////////////////////////////////
// CONSTANTS
////////////////////////////////////////
#define DEFAULT_DISPLAYLINES 12
#define DEFAULT_FRAMESPERLETTER 12
#define DEFAULT_IMAGETIMEOUT 1000
#define DEFAULT_TEXTTIMEOUT 1000
#define MAX_COLOURS 12

enum scenes
{
	NOSCENE = -1,
	STARTUP = 0,
	LOADING,
	PREPAUSE,
	PLAY,
	END
};

enum imagedisplaytypes {
	IMG_SCALE, 
	IMG_STRETCH,
	IMG_NORMAL
};

enum textdisplaystates {
	TEXT_TYPING, 
	TEXT_PAUSED,
	TEXT_CLEAR
};


enum playstates {
	PLAYING, 
	PAUSED,
	STOPPED
};

////////////////////////////////////////
// DATA TYPES
////////////////////////////////////////
struct Colour {
	int r;
	int g;
	int b;
	int a;
	std::string name;
};


struct Statement {
	string text;
	Colour bgcolour;
	Colour forecolour;
	int id;
	int textwait;
	int pausewait;
};


struct SlideImage {
	const char *filepath;
	int id;
	ofImage image;
	float width;
	float height;
	int timeout;
};



#endif

