00001 #ifndef __CONFIG_H__ 00002 #define __CONFIG_H__ 00003 00004 // 00005 // All display parameters are collected here. 00006 // 00007 00008 extern bool day; 00009 00010 extern bool g_bSmoothing; 00011 extern bool g_bBlending; 00012 00013 // Height of the water surface [0-1, percentage of height field height] 00014 extern const float g_waterlevel; 00015 // Scaling of the water surface height 00016 extern const float g_fWaterScale; 00017 extern bool g_bFresnel; 00018 00019 extern bool draw_fog; 00020 00021 extern bool draw_mirror_plane; 00022 extern bool draw_mirror; 00023 00024 extern bool draw_height_field; 00025 00026 extern bool g_CameraRotateLeft, g_CameraRotateRight; 00027 extern bool g_CameraRotateUp, g_CameraRotateDown; 00028 extern float g_CameraAngleX, g_CameraAngleY; 00029 extern float g_CameraX, g_CameraY, g_CameraZ; 00030 00031 extern float g_length; 00032 00033 00034 extern bool g_show_axis; 00035 00036 // Base resource directory 00037 extern const char *g_strResourceDir; 00038 00039 00040 // Height field width 00041 extern int g_hfW; 00042 // Height field height 00043 extern int g_hfH; 00044 // Height field filename 00045 extern const char *g_strHeightFieldFile; 00046 00047 // Scaling of the height field 00048 extern float g_fHeightScale; 00049 00050 // Draw style flags 00051 extern bool g_bLighting; 00052 extern bool g_bFrameRate; 00053 00054 00055 // Parameters 00056 00057 extern int g_tpt; 00058 00059 // Height of the plane over ground 00060 extern float g_fHeight; 00061 00062 // Number of cells visible from the plane in each direction 00063 extern int g_cells; 00064 00065 // Size which a cell occupies in the XY plane 00066 extern int g_cellsize; 00067 00068 00069 // Time after which the scene is redrawn (in ms) 00070 extern int g_nTimerDelay; 00071 00072 // Position of "sun" 00073 extern float g_lightPos[4]; 00074 extern float g_lightPos2[4]; 00075 00076 00077 // Camera data (updated per frame) 00078 extern float g_fViewDistance; 00079 00080 00081 // Some colors 00082 extern const float colorWhite[4]; 00083 extern const float colorBlue[4]; 00084 extern const float colorGreen[4]; 00085 extern const float colorRed[4]; 00086 extern const float colorYellow[4]; 00087 extern const float colorDarkGreen[4]; 00088 extern const float colorNone[4]; 00089 extern const float colorDarkGrey[4]; 00090 extern const float colorDarkYellow[4]; 00091 extern const float colorDarkRed[4]; 00092 extern const float colorDarkBrown[4]; 00093 extern const float colorSky[4]; 00094 extern const float colorVeryLightGreen[4]; 00095 extern const float colorLightGreen[4]; 00096 extern const float colorWaterGreen[4]; 00097 00098 #endif 00099 00100