Pyrogenesis HEAD
Pyrogenesis, a RTS Engine
WaterManager.cpp File Reference
Include dependency graph for WaterManager.cpp:

Classes

struct  CoastalPoint
 
struct  SWavesVertex
 
struct  WaveObject
 

Macros

#define ABOVEWATER(x, z)   (HEIGHT_SCALE * heightmap[z*SideSize + x] >= waterHeight)
 
#define UPDATELOOKAHEAD
 

Functions

 cassert (sizeof(SWavesVertex)==64)
 
template<bool Transpose>
static void ComputeDirection (float *distanceMap, const u16 *heightmap, float waterHeight, size_t SideSize, size_t maxLevel)
 

Macro Definition Documentation

◆ ABOVEWATER

#define ABOVEWATER (   x,
 
)    (HEIGHT_SCALE * heightmap[z*SideSize + x] >= waterHeight)

◆ UPDATELOOKAHEAD

#define UPDATELOOKAHEAD
Value:
for (; lookahead <= id2+maxLevel && lookahead < SideSize && \
((!Transpose && !ABOVEWATER(lookahead, id1)) || (Transpose && !ABOVEWATER(id1, lookahead))); ++lookahead)
#define ABOVEWATER(x, z)
static const size_t maxLevel
Definition: wdbg_sym.cpp:357

Function Documentation

◆ cassert()

cassert ( sizeof(SWavesVertex = =64)

◆ ComputeDirection()

template<bool Transpose>
static void ComputeDirection ( float *  distanceMap,
const u16 heightmap,
float  waterHeight,
size_t  SideSize,
size_t  maxLevel 
)
inlinestatic