Go to the documentation of this file.
29 #ifndef __Ogre_TerrainLodManager_H__
30 #define __Ogre_TerrainLodManager_H__
64 , currentPreparedLod(preparedLod)
65 , currentLoadedLod(loadedLod)
66 , requestedLod(target)
96 void updateToLodLevel(
int lodLevel,
bool synchronous =
false);
106 void fillBufferAtLod(
uint lodLevel,
const float* data,
uint dataSize );
113 void readLodData(
uint16 lowerLodBound,
uint16 higherLodBound);
114 void waitForDerivedProcesses();
124 return mLodInfoTable[lodLevel];
128 void buildLodInfoTable();
147 static void separateData(
float* data,
uint16 size,
uint16 numLodLevels, LodsData& lods );
vector< float >::type LodData
Interface to a general purpose request / response style background work queue.
Superclass for all objects that wish to use custom memory allocators when their new / delete operator...
General purpose request structure.
LoadLodRequest(TerrainLodManager *r, uint16 preparedLod, uint16 loadedLod, uint16 target)
int getHighestLodPrepared()
int mHighestLodPrepared
Which LOD level is demanded.
#define _OgreTerrainExport
The main containing class for a chunk of terrain.
Terrain LOD data manager.
General purpose response structure.
LodInfo & getLodInfo(uint lodLevel)
bool mLastRequestSynchronous
Is increaseLodLevel() running?
static const uint16 WORKQUEUE_LOAD_LOD_DATA_REQUEST
Interface definition for a handler of responses.
bool mIncreaseLodLevelInProgress
Highest LOD level loaded in GPU.
int mHighestLodLoaded
Highest LOD level stored in memory i.e. mHeightData/mDeltaData.
static const uint16 TERRAINLODDATA_CHUNK_VERSION
int getHighestLodLoaded()
Utility class providing helper methods for reading / writing structured data held in a DataStream.
static const uint32 TERRAINLODDATA_CHUNK_ID
vector< LodData >::type LodsData
Interface definition for a handler of requests.
TerrainLodManager * requestee
_OgreTerrainExport friend std::ostream & operator<<(std::ostream &o, const LoadLodRequest &r)
uint16 currentPreparedLod
DataStreamPtr mDataStream
Copyright © 2012 Torus Knot Software Ltd

This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.
Last modified Tue Apr 13 2021 08:53:15