www.pudn.com > WaveSimulation.rar > MyDefine.h
/////////////////////////////////////////////////////////////// //MyDefine.h /////////////////////////////////////////////////////////////// #ifndef MYDEFINE_H_ #define MYDEFINE_H_ #include// OpenGL headers #include #include #define SQR(x) ((x) * (x)) #define MAX(a,b) ( (a) < (b) ? (b) : (a) ) #define PI 3.14159265358f #define PARTICLE_NUMBER_PER_WAVE 250 struct FoamPartical { float x,y,z; //the position of the foam created; float hv,vv; float life; char size; }; struct WaveLine { float x,y,z; }; ////////////////////function extern void calcNormal(float v[][3], float out[]); extern float g_timet; class CTexture; class CInput; class CWave; class CBezier; class CTerrian; extern CTerrian g_cTerrian; extern CInput g_cInput; //控制按键 extern CTexture g_cTexture; //纹理控制 extern CWave g_cWave[]; extern CBezier g_cBezier; extern bool g_bPolygonMode; //多边形填充模式 extern bool g_bLighting; //光照模式 extern bool g_bTexture; extern bool g_bFog; extern int quit; //判断程序是否正在运行 extern HINSTANCE g_hInst; //全局进程句柄 extern HDC GLOBhDC; //全局设备环境句柄 extern HWND mainwindow; //主窗口句柄 extern HGLRC hRC; // OpenGL Rendering context extern GLfloat Camera_HalfFov; extern GLfloat Xeye , Yeye , Zeye, //视点坐标 ViewLineLength, ViewLineAngle; extern int width ,height; //显示窗口的宽度高度//handleresize()中使用 extern int base; //字体列表 extern float fps; //刷新楨率 #endif //MYDEFINE_H_