fysxasteroids/engine/globals.h
Martin Felis (berta win) c2ca0a1a4d fixed compilation under windows
- crashes sometimes for no obvious reason when loading fonts
2011-05-04 18:33:44 +02:00

22 lines
432 B
C

#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
#define NOMINMAX
#include <windows.h>
#define bzero(b,len) (memset((b), '\0', (len)), (void) 0)
#include <cmath>
inline double roundf(double x) { return floor(x + 0.5); }
#endif
#include <SDL/SDL.h>
#endif // _GLOBALS_H