#include <Terrain.h>
Public Member Functions | |
| CDefaultTextureDatabase (void) | |
| ~CDefaultTextureDatabase () | |
| void | Init (void) |
| void | Purge (void) |
| CRawImage * | GetBaseTexture (int x, int z, ETerrainType type, ETileDetail level) |
| void | GetCompositeTextureName (unsigned int x, unsigned int z, char *textureName) |
| CRawImage * | GetCompositeTexture (const char *textureName, ETileDetail level) |
| CRawImage * | GetCompositeTexture (unsigned int x, unsigned int z, ETileDetail level) |
| void | GetReliefShadingRGB (const float elev, float &r, float &g, float &b) |
Protected Attributes | |
| CRawImage * | low [256] |
| CRawImage * | med [256][4][4] |
| CRawImage * | high [256][4][4] |
| float | relief [256][3] |
| float | maxElevation |
| int | negativeIndex |
| int | zeroIndex |
| int | baseIndex |
| int | maxIndex |
| ulList | composite |
Definition at line 341 of file Terrain.h.
|
|
Definition at line 178 of file Terrain.cpp. References baseIndex, data, globals, gtfo, Init(), maxElevation, maxIndex, negativeIndex, pclose(), SGlobals::pfs, popen(), pread(), relief, and zeroIndex. |
|
|
Definition at line 208 of file Terrain.cpp. |
|
||||||||||||||||||||
|
Definition at line 296 of file Terrain.cpp. References globals, gtfo, high, low, med, pexists(), SGlobals::pfs, TILE_DETAIL_HIGH, TILE_DETAIL_LOW, and TILE_DETAIL_MEDIUM. Referenced by GetCompositeTexture(). |
|
||||||||||||||||
|
Definition at line 509 of file Terrain.cpp. References GetCompositeTexture(), and GetCompositeTextureName(). |
|
||||||||||||
|
Definition at line 424 of file Terrain.cpp. References dtdb, GetBaseTexture(), CTransitionMaskDatabase::GetBottomTransition(), CTransitionMaskDatabase::GetCornerTransition(), CTransitionMaskDatabase::GetRightTransition(), CRawImage::MergeTransitions(), CRawImage::SetName(), TERRAIN_WATER_OCEAN, and tmdb. Referenced by GetCompositeTexture(), and CDetailTile::LoadDefaultTexture(). |
|
||||||||||||||||
|
Definition at line 379 of file Terrain.cpp. References CTerrainTypeDatabase::GetTerrainType(). Referenced by CDetailTile::CDetailTile(), CDetailTile::CreateStripGeometry(), and GetCompositeTexture(). |
|
||||||||||||||||||||
|
Definition at line 523 of file Terrain.cpp. References baseIndex, maxElevation, maxIndex, negativeIndex, relief, and zeroIndex. Referenced by CDetailTile::CreateFanGeometry(), and CDetailTile::CreateStripGeometry(). |
|
|
Definition at line 236 of file Terrain.cpp. References high, low, med, and relief. Referenced by CDefaultTextureDatabase(). |
|
|
Definition at line 270 of file Terrain.cpp. |
|
|
Definition at line 365 of file Terrain.h. Referenced by CDefaultTextureDatabase(), and GetReliefShadingRGB(). |
|
|
Definition at line 368 of file Terrain.h. Referenced by ~CDefaultTextureDatabase(). |
|
|
Definition at line 360 of file Terrain.h. Referenced by GetBaseTexture(), Init(), Purge(), and ~CDefaultTextureDatabase(). |
|
|
Definition at line 358 of file Terrain.h. Referenced by GetBaseTexture(), Init(), and ~CDefaultTextureDatabase(). |
|
|
Definition at line 364 of file Terrain.h. Referenced by CDefaultTextureDatabase(), and GetReliefShadingRGB(). |
|
|
Definition at line 365 of file Terrain.h. Referenced by CDefaultTextureDatabase(), and GetReliefShadingRGB(). |
|
|
Definition at line 359 of file Terrain.h. Referenced by GetBaseTexture(), Init(), Purge(), and ~CDefaultTextureDatabase(). |
|
|
Definition at line 365 of file Terrain.h. Referenced by CDefaultTextureDatabase(), and GetReliefShadingRGB(). |
|
|
Definition at line 363 of file Terrain.h. Referenced by CDefaultTextureDatabase(), GetReliefShadingRGB(), and Init(). |
|
|
Definition at line 365 of file Terrain.h. Referenced by CDefaultTextureDatabase(), and GetReliefShadingRGB(). |
|
|
Documentation generated by
|