OGRE 14.3
Object-Oriented Graphics Rendering Engine
|
Terrain LOD data manager. More...
#include <OgreTerrainLodManager.h>
Classes | |
struct | LoadLodRequest |
struct | LodInfo |
Public Types | |
typedef std::vector< float > | LodData |
typedef std::vector< LodData > | LodsData |
Public Member Functions | |
TerrainLodManager (Terrain *t, const String &filename="") | |
TerrainLodManager (Terrain *t, DataStreamPtr &stream) | |
virtual | ~TerrainLodManager () |
void | close () |
void | fillBufferAtLod (uint lodLevel, const float *data, uint dataSize) |
Copy geometry data from buffer to mHeightData/mDeltaData. | |
int | getHighestLodLoaded () |
int | getHighestLodPrepared () |
LodInfo & | getLodInfo (uint lodLevel) |
int | getTargetLodLevel () |
bool | isOpen () const |
void | open (const String &filename) |
void | readLodData (uint16 lowerLodBound, uint16 higherLodBound) |
Read separated geometry data from file into allocated memory. | |
void | updateToLodLevel (int lodLevel, bool synchronous=false) |
void | waitForDerivedProcesses () |
Static Public Member Functions | |
static void | saveLodData (StreamSerialiser &stream, Terrain *terrain) |
Save each LOD level separately compressed so seek is possible. | |
Static Public Attributes | |
static const uint32 | TERRAINLODDATA_CHUNK_ID |
static const uint16 | TERRAINLODDATA_CHUNK_VERSION |
Terrain LOD data manager.
typedef std::vector<float> Ogre::TerrainLodManager::LodData |
typedef std::vector<LodData> Ogre::TerrainLodManager::LodsData |
Ogre::TerrainLodManager::TerrainLodManager | ( | Terrain * | t, |
DataStreamPtr & | stream | ||
) |
|
virtual |
void Ogre::TerrainLodManager::close | ( | ) |
bool Ogre::TerrainLodManager::isOpen | ( | ) | const |
|
static |
Save each LOD level separately compressed so seek is possible.
Copy geometry data from buffer to mHeightData/mDeltaData.
lodLevel | A LOD level to work with |
data,dataSize | Buffer which holds geometry data if separated form |
Read separated geometry data from file into allocated memory.
lowerLodBound | Lower bound of LOD levels to load |
higherLodBound | Upper bound of LOD levels to load |
void Ogre::TerrainLodManager::waitForDerivedProcesses | ( | ) |
|
inline |
|
inline |
|
inline |