2003-11-03 17:22:45 +01:00
|
|
|
//***********************************************************
|
|
|
|
//
|
2003-11-25 21:10:25 +01:00
|
|
|
// Name: TerrGlobals.H
|
2003-11-03 17:22:45 +01:00
|
|
|
// Last Update: 27/2/02
|
|
|
|
// Author: Poya Manouchehri
|
|
|
|
//
|
|
|
|
// Description: Some globals and macros, used by the CTerrain
|
|
|
|
// and CPatch
|
|
|
|
//
|
|
|
|
//***********************************************************
|
|
|
|
|
|
|
|
#ifndef TERRGLOBALS_H
|
|
|
|
#define TERRGLOBALS_H
|
|
|
|
|
|
|
|
const int PATCH_SIZE = 16;
|
|
|
|
const int CELL_SIZE = 4; //horizontal scale of the patches
|
2003-11-25 21:10:25 +01:00
|
|
|
const float HEIGHT_SCALE = 0.35f;
|
2003-11-03 17:22:45 +01:00
|
|
|
|
|
|
|
//only 3x3 patches loaded at a time
|
|
|
|
const int NUM_PATCHES_PER_SIDE = 20;
|
|
|
|
|
|
|
|
//must be odd number of patches
|
|
|
|
//#define TERRAIN_CHUNK_SIZE (PATCH_SIZE*NUM_PATCHES_PER_SIDE)
|
|
|
|
const int MAP_SIZE = ( (NUM_PATCHES_PER_SIDE*PATCH_SIZE)+1 );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2003-11-25 21:10:25 +01:00
|
|
|
#endif
|