XLE  v0.02.0
Classes | Public Member Functions | Static Public Member Functions | Public Attributes | Protected Attributes | List of all members
SceneEngine::TerrainConfig Class Reference

Configuration settings for terrain input assets More...

#include <TerrainConfig.h>

Classes

class  CoverageLayer
 

Public Member Functions

 TerrainConfig (const ::Assets::ResChar cellsDirectory[], UInt2 cellCount, unsigned nodeDimsInElements=32u, unsigned cellTreeDepth=5u, unsigned nodeOverlap=2u, float elementSpacing=10.f, float sunPathAngle=0.f, bool encodedGradientFlags=false)
 
 TerrainConfig (InputStreamFormatter< utf8 > &formatter, const ::Assets::DirectorySearchRules &searchRules)
 
void GetCellFilename (::Assets::ResChar buffer[], unsigned cnt, UInt2 cellIndex, TerrainCoverageId id) const
 
UInt2x3 CellBasedToCoverage (TerrainCoverageId coverageId) const
 
UInt2 CellDimensionsInNodes () const
 
UInt2 NodeDimensionsInElements () const
 
unsigned CellTreeDepth () const
 
unsigned NodeOverlap () const
 
float ElementSpacing () const
 
float SunPathAngle () const
 
bool EncodedGradientFlags () const
 
unsigned GetCoverageLayerCount () const
 
const CoverageLayerGetCoverageLayer (unsigned index) const
 
void AddCoverageLayer (const CoverageLayer &layer)
 
void Write (OutputStreamFormatter &formatter) const
 

Static Public Member Functions

static void GetUberSurfaceFilename (::Assets::ResChar buffer[], unsigned bufferCount, const ::Assets::ResChar directory[], TerrainCoverageId fileType)
 

Public Attributes

UInt2 _cellCount
 
::Assets::ResChar _cellsDirectory [MaxPath]
 

Protected Attributes

unsigned _nodeDimsInElements
 
unsigned _cellTreeDepth
 
unsigned _nodeOverlap
 
float _elementSpacing
 
float _sunPathAngle
 
bool _encodedGradientFlags
 
std::vector< CoverageLayer_coverageLayers
 

Detailed Description

Configuration settings for terrain input assets

This contains informations describing the input assets for a terrain such as the number of cells, and the size of those cells.


The documentation for this class was generated from the following files: