Pyrogenesis  trunk
Classes | Macros | Functions
WaterManager.cpp File Reference
#include "precompiled.h"
#include "graphics/Terrain.h"
#include "graphics/TextureManager.h"
#include "graphics/ShaderManager.h"
#include "graphics/ShaderProgram.h"
#include "lib/bits.h"
#include "lib/timer.h"
#include "maths/MathUtil.h"
#include "maths/Vector2D.h"
#include "ps/CLogger.h"
#include "ps/CStrInternStatic.h"
#include "ps/Game.h"
#include "ps/VideoMode.h"
#include "ps/World.h"
#include "renderer/backend/IDevice.h"
#include "renderer/Renderer.h"
#include "renderer/RenderingOptions.h"
#include "renderer/SceneRenderer.h"
#include "renderer/WaterManager.h"
#include "simulation2/Simulation2.h"
#include "simulation2/components/ICmpWaterManager.h"
#include "simulation2/components/ICmpRangeManager.h"
#include <algorithm>
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)
static const size_t maxLevel
Definition: wdbg_sym.cpp:371
#define ABOVEWATER(x, z)

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