#include <Terrain.h>
|
| CTerrain () |
|
| ~CTerrain () |
|
bool | Initialize (ssize_t patchesPerSide, const u16 *ptr) |
|
ssize_t | GetVerticesPerSide () const |
|
ssize_t | GetTilesPerSide () const |
|
ssize_t | GetPatchesPerSide () const |
|
float | GetMinX () const |
|
float | GetMinZ () const |
|
float | GetMaxX () const |
|
float | GetMaxZ () const |
|
bool | IsOnMap (float x, float z) const |
|
float | GetVertexGroundLevel (ssize_t i, ssize_t j) const |
|
fixed | GetVertexGroundLevelFixed (ssize_t i, ssize_t j) const |
|
float | GetExactGroundLevel (float x, float z) const |
|
fixed | GetExactGroundLevelFixed (fixed x, fixed z) const |
|
float | GetFilteredGroundLevel (float x, float z, float radius) const |
|
fixed | GetSlopeFixed (ssize_t i, ssize_t j) const |
|
fixed | GetExactSlopeFixed (fixed x, fixed z) const |
|
bool | GetTriangulationDir (ssize_t i, ssize_t j) const |
|
void | ResizeAndOffset (ssize_t size, ssize_t horizontalOffset=0, ssize_t verticalOffset=0) |
|
void | SetHeightMap (u16 *heightmap) |
|
u16 * | GetHeightMap () const |
|
CPatch * | GetPatch (ssize_t i, ssize_t j) const |
|
CMiniPatch * | GetTile (ssize_t i, ssize_t j) const |
|
void | CalcPosition (ssize_t i, ssize_t j, CVector3D &pos) const |
|
void | CalcPositionFixed (ssize_t i, ssize_t j, CFixedVector3D &pos) const |
|
void | CalcNormal (ssize_t i, ssize_t j, CVector3D &normal) const |
|
void | CalcNormalFixed (ssize_t i, ssize_t j, CFixedVector3D &normal) const |
|
CVector3D | CalcExactNormal (float x, float z) const |
|
void | MakeDirty (ssize_t i0, ssize_t j0, ssize_t i1, ssize_t j1, int dirtyFlags) |
|
void | MakeDirty (int dirtyFlags) |
|
CBoundingBoxAligned | GetVertexesBound (ssize_t i0, ssize_t j0, ssize_t i1, ssize_t j1) |
| Returns a 3D bounding box encompassing the given vertex range (inclusive) More...
|
|
SColor4ub | GetBaseColor () const |
|
void | SetBaseColor (SColor4ub color) |
|
const CHeightMipmap & | GetHeightMipmap () const |
|
◆ CTerrain()
◆ ~CTerrain()
◆ CalcExactNormal()
CVector3D CTerrain::CalcExactNormal |
( |
float |
x, |
|
|
float |
z |
|
) |
| const |
◆ CalcFromPosition() [1/2]
◆ CalcFromPosition() [2/2]
static void CTerrain::CalcFromPosition |
( |
float |
x, |
|
|
float |
z, |
|
|
ssize_t & |
i, |
|
|
ssize_t & |
j |
|
) |
| |
|
inlinestatic |
◆ CalcNormal()
◆ CalcNormalFixed()
◆ CalcPosition()
◆ CalcPositionFixed()
◆ GetBaseColor()
◆ GetExactGroundLevel()
float CTerrain::GetExactGroundLevel |
( |
float |
x, |
|
|
float |
z |
|
) |
| const |
◆ GetExactGroundLevelFixed()
◆ GetExactSlopeFixed()
◆ GetFilteredGroundLevel()
float CTerrain::GetFilteredGroundLevel |
( |
float |
x, |
|
|
float |
z, |
|
|
float |
radius |
|
) |
| const |
◆ GetHeightMap()
u16 * CTerrain::GetHeightMap |
( |
| ) |
const |
|
inline |
◆ GetHeightMipmap()
◆ GetMaxX()
float CTerrain::GetMaxX |
( |
| ) |
const |
|
inline |
◆ GetMaxZ()
float CTerrain::GetMaxZ |
( |
| ) |
const |
|
inline |
◆ GetMinX()
float CTerrain::GetMinX |
( |
| ) |
const |
|
inline |
◆ GetMinZ()
float CTerrain::GetMinZ |
( |
| ) |
const |
|
inline |
◆ GetPatch()
◆ GetPatchesPerSide()
ssize_t CTerrain::GetPatchesPerSide |
( |
| ) |
const |
|
inline |
◆ GetSlopeFixed()
◆ GetTile()
◆ GetTilesPerSide()
ssize_t CTerrain::GetTilesPerSide |
( |
| ) |
const |
|
inline |
◆ GetTriangulationDir()
◆ GetVertexesBound()
Returns a 3D bounding box encompassing the given vertex range (inclusive)
◆ GetVertexGroundLevel()
◆ GetVertexGroundLevelFixed()
◆ GetVerticesPerSide()
ssize_t CTerrain::GetVerticesPerSide |
( |
| ) |
const |
|
inline |
◆ InitialisePatches()
void CTerrain::InitialisePatches |
( |
| ) |
|
|
private |
◆ Initialize()
bool CTerrain::Initialize |
( |
ssize_t |
patchesPerSide, |
|
|
const u16 * |
ptr |
|
) |
| |
◆ IsOnMap()
bool CTerrain::IsOnMap |
( |
float |
x, |
|
|
float |
z |
|
) |
| const |
|
inline |
◆ MakeDirty() [1/2]
void CTerrain::MakeDirty |
( |
int |
dirtyFlags | ) |
|
◆ MakeDirty() [2/2]
◆ ReleaseData()
void CTerrain::ReleaseData |
( |
| ) |
|
|
private |
◆ ResizeAndOffset()
void CTerrain::ResizeAndOffset |
( |
ssize_t |
size, |
|
|
ssize_t |
horizontalOffset = 0 , |
|
|
ssize_t |
verticalOffset = 0 |
|
) |
| |
◆ SetBaseColor()
void CTerrain::SetBaseColor |
( |
SColor4ub |
color | ) |
|
|
inline |
◆ SetHeightMap()
void CTerrain::SetHeightMap |
( |
u16 * |
heightmap | ) |
|
◆ m_BaseColor
◆ m_Heightmap
u16* CTerrain::m_Heightmap |
|
private |
◆ m_HeightMipmap
◆ m_MapSize
◆ m_MapSizePatches
◆ m_Patches
The documentation for this class was generated from the following files:
- /home/docker/jenkins/workspace/technical-docs/source/graphics/Terrain.h
- /home/docker/jenkins/workspace/technical-docs/source/graphics/Terrain.cpp