2010-04-05 23:38:59 +02:00
|
|
|
#ifndef _GLOBALS_H
|
|
|
|
#define _GLOBALS_H
|
|
|
|
|
|
|
|
#define LOG_DEFAULT_LEVEL LogLevelMessage
|
|
|
|
#define LOG_MAX_MESSAGE_LENGTH 1024
|
|
|
|
|
|
|
|
#define VIEW_DEFAULT_HEIGHT 600
|
|
|
|
#define VIEW_DEFAULT_WIDTH 800
|
|
|
|
|
|
|
|
#ifdef WIN32
|
2011-05-04 18:33:44 +02:00
|
|
|
#define NOMINMAX
|
2010-04-05 23:38:59 +02:00
|
|
|
#include <windows.h>
|
2011-05-04 18:33:44 +02:00
|
|
|
#define bzero(b,len) (memset((b), '\0', (len)), (void) 0)
|
|
|
|
|
|
|
|
#include <cmath>
|
|
|
|
inline double roundf(double x) { return floor(x + 0.5); }
|
2010-04-05 23:38:59 +02:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#include <SDL/SDL.h>
|
|
|
|
|
|
|
|
#endif // _GLOBALS_H
|