|
| cRoughRavine (int a_Seed, size_t a_Size, float a_CenterWidth, float a_Roughness, float a_FloorHeightEdge1, float a_FloorHeightEdge2, float a_FloorHeightCenter, float a_CeilingHeightEdge1, float a_CeilingHeightEdge2, float a_CeilingHeightCenter, int a_GridX, int a_GridZ, int a_OriginX, int a_OriginZ) |
|
| cStructure (int a_GridX, int a_GridZ, int a_OriginX, int a_OriginZ) |
| Creates a structure that has its origin set at the specified coords. More...
|
|
virtual size_t | GetCacheCost (void) const |
| Returns the cost of keeping this structure in the cache. More...
|
|
virtual | ~cStructure () |
|
Definition at line 18 of file RoughRavines.cpp.
◆ sRavineDefPoints
◆ Super
◆ cRoughRavine()
cRoughRavine::cRoughRavine |
( |
int |
a_Seed, |
|
|
size_t |
a_Size, |
|
|
float |
a_CenterWidth, |
|
|
float |
a_Roughness, |
|
|
float |
a_FloorHeightEdge1, |
|
|
float |
a_FloorHeightEdge2, |
|
|
float |
a_FloorHeightCenter, |
|
|
float |
a_CeilingHeightEdge1, |
|
|
float |
a_CeilingHeightEdge2, |
|
|
float |
a_CeilingHeightCenter, |
|
|
int |
a_GridX, |
|
|
int |
a_GridZ, |
|
|
int |
a_OriginX, |
|
|
int |
a_OriginZ |
|
) |
| |
|
inline |
◆ DrawIntoChunk()
virtual void cRoughRavine::DrawIntoChunk |
( |
cChunkDesc & |
a_ChunkDesc | ) |
|
|
inlineoverrideprotectedvirtual |
◆ InitPerHeightRadius()
void cRoughRavine::InitPerHeightRadius |
( |
int |
a_GridX, |
|
|
int |
a_GridZ |
|
) |
| |
|
inlineprotected |
◆ SubdivideLine()
void cRoughRavine::SubdivideLine |
( |
size_t |
a_Idx1, |
|
|
size_t |
a_Idx2 |
|
) |
| |
|
inlineprotected |
Recursively subdivides the line between the points of the specified index.
Sets the midpoint to the center of the line plus or minus a random offset, then calls itself for each half of the new line.
Definition at line 95 of file RoughRavines.cpp.
◆ m_DefPoints
◆ m_MaxSize
int cRoughRavine::m_MaxSize |
|
protected |
◆ m_Noise
◆ m_PerHeightRadius
Number to add to the radius based on the height.
This creates the "ledges" in the ravine walls.
Definition at line 89 of file RoughRavines.cpp.
◆ m_Roughness
float cRoughRavine::m_Roughness |
|
protected |
◆ m_Seed
The documentation for this class was generated from the following file: