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

config.cpp File Reference

#include "config.h"

Go to the source code of this file.

Defines

#define _g_tpt   10

Variables

bool day = false
int g_tpt = 10
float g_texcoord [2 *_g_tpt]
bool g_bBlending = true
bool g_bSmoothing = true
const float g_waterlevel = 0.5f
const float g_fWaterScale = 3.0f
bool g_bFresnel = true
bool draw_fog = true
bool draw_mirror_plane = true
bool draw_mirror = true
bool draw_height_field = true
bool g_CameraRotateLeft = false g_CameraRotateRight = false
bool g_CameraRotateDown = false g_CameraRotateUp = false
float g_CameraAngleX = 0 g_CameraAngleY = 0
float g_length = 12.0f
float g_CameraX = 0 g_CameraY = 0 g_CameraZ = g_length
float g_MirrorX = 10 g_MirrorY = 60 g_MirrorZ = 10
bool g_show_axis = false
const char * g_strResourceDir = "./render/resource/"
int g_hfW = 1024
int g_hfH = 1024
const char * g_strHeightFieldFile = "hf.raw_1024x1024_bw_float"
float g_fHeightScale = 10.0f
bool g_bLighting = true
bool g_bFrameRate = true
int g_cellsize = 1
int g_cells = 80
float g_fHeight = 20.0f
float g_lightPos [4] = { 30, -30, 30, 0 }
float g_lightPos2 [4] = { 0, 0, 0, 0 }
int g_nTimerDelay = 50
const float colorWhite [4] = { 1.0, 1.0, 1.0, 1.0 }
const float colorBlue [4] = { 0,0,1,1 }
const float colorRed [4] = { 1,0,0,1 }
const float colorYellow [4] = { 1,1,0,1 }
const float colorGreen [4] = { 0.0, 1, 0.0, 1.0 }
const float colorDarkGreen [4] = { 0.0, 0.5, 0.0, 1.0 }
const float colorVeryLightGreen [4] = { 0.0, 0.9, 0.0, 1.0 }
const float colorLightGreen [4] = { 0.0, 0.8, 0.0, 1.0 }
const float colorWaterGreen [4] = { 0.0, 0.3, 0.2, 1.0 }
const float colorNone [4] = { 0.0, 0.0, 0.0, 0.0 }
const float colorDarkGrey [4] = { 0.2, 0.2, 0.2, 0.0 }
const float colorDarkYellow [4] = { 0.6, 0.6, 0.0, 0.0 }
const float colorDarkRed [4] = { 0.5, 0.0, 0.0, 0.0 }
const float colorDarkBrown [4] = { 0.5, 0.3, 0.0, 0.0 }
const float colorSky [4] = { 0.3, 0.4, 0.8, 0.0 }


Define Documentation

#define _g_tpt   10
 

Definition at line 8 of file config.cpp.


Variable Documentation

const float colorBlue[4] = { 0,0,1,1 }
 

Definition at line 88 of file config.cpp.

const float colorDarkBrown[4] = { 0.5, 0.3, 0.0, 0.0 }
 

Definition at line 100 of file config.cpp.

const float colorDarkGreen[4] = { 0.0, 0.5, 0.0, 1.0 }
 

Definition at line 92 of file config.cpp.

const float colorDarkGrey[4] = { 0.2, 0.2, 0.2, 0.0 }
 

Definition at line 97 of file config.cpp.

const float colorDarkRed[4] = { 0.5, 0.0, 0.0, 0.0 }
 

Definition at line 99 of file config.cpp.

const float colorDarkYellow[4] = { 0.6, 0.6, 0.0, 0.0 }
 

Definition at line 98 of file config.cpp.

const float colorGreen[4] = { 0.0, 1, 0.0, 1.0 }
 

Definition at line 91 of file config.cpp.

const float colorLightGreen[4] = { 0.0, 0.8, 0.0, 1.0 }
 

Definition at line 94 of file config.cpp.

Referenced by __draw_fog().

const float colorNone[4] = { 0.0, 0.0, 0.0, 0.0 }
 

Definition at line 96 of file config.cpp.

const float colorRed[4] = { 1,0,0,1 }
 

Definition at line 89 of file config.cpp.

const float colorSky[4] = { 0.3, 0.4, 0.8, 0.0 }
 

Definition at line 101 of file config.cpp.

const float colorVeryLightGreen[4] = { 0.0, 0.9, 0.0, 1.0 }
 

Definition at line 93 of file config.cpp.

const float colorWaterGreen[4] = { 0.0, 0.3, 0.2, 1.0 }
 

Definition at line 95 of file config.cpp.

Referenced by streamVertex().

const float colorWhite[4] = { 1.0, 1.0, 1.0, 1.0 }
 

Definition at line 87 of file config.cpp.

const float colorYellow[4] = { 1,1,0,1 }
 

Definition at line 90 of file config.cpp.

bool day = false
 

Definition at line 3 of file config.cpp.

Referenced by __draw_fog(), keyboard(), and streamVertex().

bool draw_fog = true
 

Definition at line 23 of file config.cpp.

Referenced by display(), and keyboard().

bool draw_height_field = true
 

Definition at line 28 of file config.cpp.

Referenced by keyboard(), and renderScene().

bool draw_mirror = true
 

Definition at line 26 of file config.cpp.

Referenced by display().

bool draw_mirror_plane = true
 

Definition at line 25 of file config.cpp.

Referenced by display(), keyboard(), and renderScene().

bool g_bBlending = true
 

Definition at line 13 of file config.cpp.

Referenced by drawHeightField().

bool g_bFrameRate = true
 

Definition at line 62 of file config.cpp.

Referenced by display(), and selectFromMenu().

bool g_bFresnel = true
 

Definition at line 21 of file config.cpp.

Referenced by streamVertex().

bool g_bLighting = true
 

Definition at line 61 of file config.cpp.

Referenced by diffuseLighting(), renderScene(), and selectFromMenu().

bool g_bSmoothing = true
 

Definition at line 14 of file config.cpp.

Referenced by drawMultipassQuad().

float g_CameraAngleX = 0 g_CameraAngleY = 0
 

Definition at line 32 of file config.cpp.

Referenced by display(), setupCamera(), and timerCallback().

bool g_CameraRotateDown = false g_CameraRotateUp = false
 

Definition at line 31 of file config.cpp.

Referenced by keyboard(), keyboardUp(), and timerCallback().

bool g_CameraRotateLeft = false g_CameraRotateRight = false
 

Definition at line 30 of file config.cpp.

Referenced by keyboard(), keyboardUp(), and timerCallback().

float g_CameraX = 0 g_CameraY = 0 g_CameraZ = g_length
 

Definition at line 36 of file config.cpp.

Referenced by __drawModel(), computeWater(), display(), initGL(), renderScene(), setupCamera(), and timerCallback().

int g_cells = 80
 

Definition at line 70 of file config.cpp.

Referenced by renderScene().

int g_cellsize = 1
 

Definition at line 68 of file config.cpp.

Referenced by computeNormal(), display(), drawModel(), drawWaterQuad(), gethfVertexData(), initGL(), initHeightField(), renderScene(), and timerCallback().

float g_fHeight = 20.0f
 

Definition at line 73 of file config.cpp.

float g_fHeightScale = 10.0f
 

Definition at line 56 of file config.cpp.

Referenced by drawWaterQuad(), gethfVertexData(), hftexture(), and initHeightField().

const float g_fWaterScale = 3.0f
 

Definition at line 19 of file config.cpp.

Referenced by computeHeight().

int g_hfH = 1024
 

Definition at line 49 of file config.cpp.

Referenced by initGL().

int g_hfW = 1024
 

Definition at line 47 of file config.cpp.

Referenced by initGL().

float g_length = 12.0f
 

Definition at line 34 of file config.cpp.

Referenced by initGL(), and timerCallback().

float g_lightPos[4] = { 30, -30, 30, 0 }
 

Definition at line 79 of file config.cpp.

Referenced by diffuseLighting(), display(), initGLState(), and keyboard().

float g_lightPos2[4] = { 0, 0, 0, 0 }
 

Definition at line 80 of file config.cpp.

float g_MirrorX = 10 g_MirrorY = 60 g_MirrorZ = 10
 

Definition at line 38 of file config.cpp.

int g_nTimerDelay = 50
 

Definition at line 83 of file config.cpp.

Referenced by main(), and timerCallback().

bool g_show_axis = false
 

Definition at line 41 of file config.cpp.

Referenced by drawModel(), and keyboard().

const char* g_strHeightFieldFile = "hf.raw_1024x1024_bw_float"
 

Definition at line 51 of file config.cpp.

Referenced by initGL().

const char* g_strResourceDir = "./render/resource/"
 

Definition at line 44 of file config.cpp.

Referenced by initHeightField(), and initTextures().

float g_texcoord[ 2*_g_tpt ]
 

Definition at line 11 of file config.cpp.

Referenced by initHeightField().

int g_tpt = 10
 

Definition at line 6 of file config.cpp.

Referenced by initHeightField().

const float g_waterlevel = 0.5f
 

Definition at line 17 of file config.cpp.

Referenced by drawWaterQuad(), and gethfVertexData().


Generated on Thu Jan 20 02:46:58 2005 for Main_Demo by doxygen 1.3.6