Main Page | Namespace List | Class Hierarchy | Class List | File List | Class Members | File Members

config.cpp

Go to the documentation of this file.
00001 #include "config.h"
00002 
00003 float ModelViewMatrix[16];
00004 
00005 
00006 float g_fTorusX = 0, g_fTorusY = 0;
00007 
00008 
00009 // Base resource directory
00010 const char *g_strResourceDir = "../resource/";
00011 
00012 // Height field width
00013 int g_hfW = 1024;
00014 // Height field height
00015 int g_hfH = 1024;
00016 // Height field filename
00017 const char *g_strHeightFieldFile = "hf.raw_1024x1024_bw_float";
00018 
00019 
00020 // Draw style flags
00021 bool g_bLighting = true;
00022 bool g_bFrameRate = true;
00023 bool g_bBlinnPhong = true;
00024 bool g_bPerPixelLighting = false;
00025 
00026 // Specular exponent for torus material
00027 float g_specularExponent = 10;
00028 
00029 
00030 // Position of "sun"
00031 //const float g_lightPos[4] = { 0.5, 1,0.3, 0 };
00032 const float g_lightPos[4] = { 3, 3, -3, 0};
00033 float g_lightPosEye[4];
00034 
00035 // Time after which the scene is redrawn (in ms)
00036 const int g_nTimerDelay = 50;
00037 
00038 
00039 // Some colors
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 

Generated on Thu Jan 20 02:47:12 2005 for Projective_Texture_Effect_Demo by doxygen 1.3.6