24#ifndef INCLUDED_HEIGHTMIPMAP
25#define INCLUDED_HEIGHTMIPMAP
58 void Update(
const u16* ptr,
size_t left,
size_t bottom,
size_t right,
size_t top);
70 void HalfResizeUpdate(
SMipmap &out_mipmap,
size_t mapSize,
const u16* ptr,
size_t left,
size_t bottom,
size_t right,
size_t top);
73 void BilinearUpdate(
SMipmap &out_mipmap,
size_t mapSize,
const u16* ptr,
size_t left,
size_t bottom,
size_t right,
size_t top);
Definition: HeightMipmap.h:42
NONCOPYABLE(CHeightMipmap)
~CHeightMipmap()
Definition: HeightMipmap.cpp:35
size_t m_MapSize
Definition: HeightMipmap.h:76
float GetTrilinearGroundLevel(float x, float z, float radius) const
Definition: HeightMipmap.cpp:101
void Initialize(size_t mapSize, const u16 *ptr)
Definition: HeightMipmap.cpp:82
CHeightMipmap()
Definition: HeightMipmap.cpp:31
void ReleaseData()
Definition: HeightMipmap.cpp:40
void HalfResizeUpdate(SMipmap &out_mipmap, size_t mapSize, const u16 *ptr, size_t left, size_t bottom, size_t right, size_t top)
Definition: HeightMipmap.cpp:142
void BilinearUpdate(SMipmap &out_mipmap, size_t mapSize, const u16 *ptr, size_t left, size_t bottom, size_t right, size_t top)
Definition: HeightMipmap.cpp:174
float BilinearFilter(const SMipmap &mipmap, float x, float z) const
Definition: HeightMipmap.cpp:119
void Update(const u16 *ptr)
Definition: HeightMipmap.cpp:50
std::vector< SMipmap > m_Mipmap
Definition: HeightMipmap.h:79
void DumpToDisk(const VfsPath &path) const
Definition: HeightMipmap.cpp:222
Path()
Definition: path.h:84
Definition: HeightMipmap.h:33
SMipmap()
Definition: HeightMipmap.h:34
size_t m_MapSize
Definition: HeightMipmap.h:37
u16 * m_Heightmap
Definition: HeightMipmap.h:38
SMipmap(size_t MapSize, u16 *Heightmap)
Definition: HeightMipmap.h:35
uint16_t u16
Definition: types.h:38