00001
00008 #ifndef sw_globalsH
00009 #define sw_globalsH
00010
00011
00012 #include "sw_math.h"
00013 #include "sw_IniFile.h"
00014
00015 #define C_G 9.81
00016 #define C_PI 3.1415926
00017 #define C_RADIAN 3.1415926/180.0
00018 #define C_DEGREE 180.0/3.1415926
00019 #define C_INIFILE ".\\schneeweiss.ini"
00021 #define C_STEPS_PER_TEXTURE 5 //div(Width-1,C_STEPS_PER_TEXTURE-1).rem==0 muss gelten
00022
00023
00024
00029 const CVector3 C_UP(0.0,1.0,0.0);
00030
00034 const enum RenderMode{ rmIntermediate,
00035 rmDisplayLists,
00036 rmVertexArrays
00037 };
00038
00039
00040 const GLint ERR_NOERR=0;
00041 const GLint ERR_DISPLAYLIST=1;
00042 const GLint ERR_INI_FILE=3;
00043
00044
00045 const GLint ERR_LOAD_MODEL=101;
00046 const GLint ERR_LOAD_LEVELMAP=102;
00047 const GLint ERR_LOAD_TEXTURE=103;
00048 const GLint ERR_LOAD_TEXTURE_SNOW=104;
00049 const GLint ERR_LOAD_TEXTURE_ICE=105;
00050 const GLint ERR_LOAD_TEXTURE_GRASS=106;
00051 const GLint ERR_LOAD_SKYBOX_TOP=107;
00052 const GLint ERR_LOAD_SKYBOX_FRONT=108;
00053 const GLint ERR_LOAD_SKYBOX_LEFT=109;
00054 const GLint ERR_LOAD_SKYBOX_RIGHT=110;
00055 const GLint ERR_LOAD_OBSTACLE_MAP=111;
00056
00057 const GLint ERR_FMOD_INIT=1001;
00058 const GLint ERR_FMOD_OPENSTREAM=1002;
00059
00060
00061
00062 const GLint TEX_SNOW=0;
00063 const GLint TEX_ICE=1;
00064 const GLint TEX_GRASS=2;
00065
00066
00067 const GLint CAM_BACK=0;
00068 const GLint CAM_UP=1;
00069 const GLint CAM_SIDE=2;
00070
00071
00075 const enum MoveType{movForward,
00076 turnLeft,
00077 turnRight };
00078
00079
00080 #endif