00001
00008 #ifndef _MAIN_H
00009 #define _MAIN_H
00010
00011 #ifdef WIN32
00012 #define BAD_PATH_SEP '/'
00013 #define BAD_PATH_SEP_S "/"
00014 #define PATH_SEP '\\'
00015 #define PATH_SEP_S "\\"
00016 #pragma warning(disable:4786)
00017
00018 #else
00019 #define PATH_SEP '/'
00020 #define PATH_SEP_S '/'
00021 #define BAD_PATH_SEP '\\'
00022 #define BAD_PATH_SEP_S "\\"
00023 #endif
00024
00025 #include <assert.h>
00026
00027 #include <string>
00028 using namespace std;
00029
00030 typedef unsigned int uint;
00031
00032 struct CollisionFuncArg
00033 {
00034 bool attach_joints;
00035 };
00036
00037 #define DEG_TO_RAD(angle) (angle*M_PI/180.0)
00038 #define RAD_TO_DEG(angle) (angle*180.0/M_PI)
00039
00040 #endif // header guard
00041
00042