24 #ifndef INCLUDED_HEIGHTMIPMAP 25 #define INCLUDED_HEIGHTMIPMAP 46 void Initialize(
size_t mapSize,
const u16* ptr);
50 void Update(
const u16* ptr);
55 void Update(
const u16* ptr,
size_t left,
size_t bottom,
size_t right,
size_t top);
57 float GetTrilinearGroundLevel(
float x,
float z,
float radius)
const;
59 void DumpToDisk(
const VfsPath& path)
const;
64 float BilinearFilter(
const SMipmap &mipmap,
float x,
float z)
const;
67 void HalfResizeUpdate(
SMipmap &out_mipmap,
size_t mapSize,
const u16* ptr,
size_t left,
size_t bottom,
size_t right,
size_t top);
70 void BilinearUpdate(
SMipmap &out_mipmap,
size_t mapSize,
const u16* ptr,
size_t left,
size_t bottom,
size_t right,
size_t top);
#define NONCOPYABLE(className)
Indicates that a class is noncopyable (usually due to const or reference members, or because the clas...
Definition: code_annotation.h:217
size_t m_MapSize
Definition: HeightMipmap.h:73
uint16_t u16
Definition: types.h:38
u16 * m_Heightmap
Definition: HeightMipmap.h:35
Definition: HeightMipmap.h:38
SMipmap()
Definition: HeightMipmap.h:31
size_t m_MapSize
Definition: HeightMipmap.h:34
std::vector< SMipmap > m_Mipmap
Definition: HeightMipmap.h:76
SMipmap(size_t MapSize, u16 *Heightmap)
Definition: HeightMipmap.h:32
Definition: HeightMipmap.h:29