Pyrogenesis trunk
Public Member Functions | Private Member Functions | Private Attributes | List of all members
CHeightMipmap Class Reference

#include <HeightMipmap.h>

Public Member Functions

 CHeightMipmap ()
 
 ~CHeightMipmap ()
 
void Initialize (size_t mapSize, const u16 *ptr)
 
void ReleaseData ()
 
void Update (const u16 *ptr)
 
void Update (const u16 *ptr, size_t left, size_t bottom, size_t right, size_t top)
 
float GetTrilinearGroundLevel (float x, float z, float radius) const
 
void DumpToDisk (const VfsPath &path) const
 

Private Member Functions

 NONCOPYABLE (CHeightMipmap)
 
float BilinearFilter (const SMipmap &mipmap, float x, float z) const
 
void HalfResizeUpdate (SMipmap &out_mipmap, size_t mapSize, const u16 *ptr, size_t left, size_t bottom, size_t right, size_t top)
 
void BilinearUpdate (SMipmap &out_mipmap, size_t mapSize, const u16 *ptr, size_t left, size_t bottom, size_t right, size_t top)
 

Private Attributes

size_t m_MapSize
 
std::vector< SMipmapm_Mipmap
 

Constructor & Destructor Documentation

◆ CHeightMipmap()

CHeightMipmap::CHeightMipmap ( )

◆ ~CHeightMipmap()

CHeightMipmap::~CHeightMipmap ( )

Member Function Documentation

◆ BilinearFilter()

float CHeightMipmap::BilinearFilter ( const SMipmap mipmap,
float  x,
float  z 
) const
private

◆ BilinearUpdate()

void CHeightMipmap::BilinearUpdate ( SMipmap out_mipmap,
size_t  mapSize,
const u16 ptr,
size_t  left,
size_t  bottom,
size_t  right,
size_t  top 
)
private

◆ DumpToDisk()

void CHeightMipmap::DumpToDisk ( const VfsPath path) const

◆ GetTrilinearGroundLevel()

float CHeightMipmap::GetTrilinearGroundLevel ( float  x,
float  z,
float  radius 
) const

◆ HalfResizeUpdate()

void CHeightMipmap::HalfResizeUpdate ( SMipmap out_mipmap,
size_t  mapSize,
const u16 ptr,
size_t  left,
size_t  bottom,
size_t  right,
size_t  top 
)
private

◆ Initialize()

void CHeightMipmap::Initialize ( size_t  mapSize,
const u16 ptr 
)

◆ NONCOPYABLE()

CHeightMipmap::NONCOPYABLE ( CHeightMipmap  )
private

◆ ReleaseData()

void CHeightMipmap::ReleaseData ( )

◆ Update() [1/2]

void CHeightMipmap::Update ( const u16 ptr)

◆ Update() [2/2]

void CHeightMipmap::Update ( const u16 ptr,
size_t  left,
size_t  bottom,
size_t  right,
size_t  top 
)

Member Data Documentation

◆ m_MapSize

size_t CHeightMipmap::m_MapSize
private

◆ m_Mipmap

std::vector<SMipmap> CHeightMipmap::m_Mipmap
private

The documentation for this class was generated from the following files: