/*
 * (C) Copyright Chris B. Kaynor 2006
 * All Rights Reserved.
 *
 * CONTACT: chris@kaynor.net
*/

#ifndef CBK_GAME_MACROS
#define CBK_GAME_MACROS

#include <stdlib.h>
#include <stdio.h>
#include <math.h>
#include <assert.h>
#include <ctime> 
#include <string.h>

#ifdef __linux__
	#include <GL/glut.h>
	#include <GL/glext.h>
	#include <png.h>
	#include <pngconf.h>
	#include <zlib.h>
	#include <zconf.h>
#else
	#include "glut.h"
	#include "glext.h"
	#include "png.h"
	#include "pngconf.h"
	#include "zlib.h"
	#include "zconf.h"
#endif

#define GetRandom(MiniumValue, MaximumValue) (((MaximumValue - MiniumValue + 1) * (((double) rand()) / (((double) RAND_MAX) + 1)) + MiniumValue))
#define random rand

#define PI 3.1415926535f
#define Degrees2Radians(Degrees) (Degrees * (PI / 180.0f))
#define Radians2Degrees(Radians) (Radians * (180.0f / PI))

#endif //CBK_GAME_MACROS