00001 #include "config.h"
00002
00003 float ModelViewMatrix[16];
00004
00005
00006 float g_fTorusX = 0, g_fTorusY = 0;
00007
00008
00009
00010 const char *g_strResourceDir = "../resource/";
00011
00012
00013 int g_hfW = 1024;
00014
00015 int g_hfH = 1024;
00016
00017 const char *g_strHeightFieldFile = "hf.raw_1024x1024_bw_float";
00018
00019
00020
00021 bool g_bLighting = true;
00022 bool g_bFrameRate = true;
00023 bool g_bBlinnPhong = true;
00024 bool g_bPerPixelLighting = false;
00025
00026
00027 float g_specularExponent = 10;
00028
00029
00030
00031
00032 const float g_lightPos[4] = { 3, 3, -3, 0};
00033 float g_lightPosEye[4];
00034
00035
00036 const int g_nTimerDelay = 50;
00037
00038
00039
00040 const float colorWhite[4] = { 1.0, 1.0, 1.0, 1.0 };
00041 const float colorBlue[4] = { 0,0,1,1 };
00042 const float colorRed[4] = { 1,0,0,1 };
00043 const float colorYellow[4] = { 1,1,0,1 };
00044 const float colorGreen[4] = { 0.0, 1, 0.0, 1.0 };
00045 const float colorDarkGreen[4] = { 0.0, 0.5, 0.0, 1.0 };
00046 const float colorNone[4] = { 0.0, 0.0, 0.0, 0.0 };
00047 const float colorDarkGrey[4] = { 0.2, 0.2, 0.2, 0.0 };
00048 const float colorDarkYellow[4] = { 0.6, 0.6, 0.0, 0.0 };
00049 const float colorDarkRed[4] = { 0.5, 0.0, 0.0, 0.0 };
00050 const float colorDarkBrown[4] = { 0.5, 0.3, 0.0, 0.0 };
00051 const float colorSky[4] = { 0.3, 0.4, 0.8, 0.0 };
00052