A ork::ReadbackManager::Callback to readback an elevation tile and to update the zmin and zmax fields of a TerrainQuad. More...
Public Member Functions | |
TileCallback (vector< ptr< TerrainQuad > > &targets, bool camera) | |
Creates a new ZTileCallback. | |
virtual void | dataRead (volatile void *data) |
Called when a readback is finished. | |
Public Attributes | |
vector< ptr< TerrainQuad > > | targets |
The TerrainQuad(s) whose zmin and zmax values must be read back. | |
bool | camera |
True if the first element in target is the quad under the camera. |
A ork::ReadbackManager::Callback to readback an elevation tile and to update the zmin and zmax fields of a TerrainQuad.
proland::TileSamplerZ::TileCallback::TileCallback | ( | vector< ptr< TerrainQuad > > & | targets, | |
bool | camera | |||
) |
Creates a new ZTileCallback.
targets | the TerrainQuad(s) whose zmin and zmax values must be read back. | |
camera | true if the first element in target is the quad under the camera. |
virtual void proland::TileSamplerZ::TileCallback::dataRead | ( | volatile void * | data | ) | [virtual] |
Called when a readback is finished.
data | the data that has been read. |
Implements proland::ReadbackManager::Callback.
True if the first element in target is the quad under the camera.
If so its zmin and zmax are used to update TerrainNode::groundHeightAtCamera
vector< ptr<TerrainQuad> > proland::TileSamplerZ::TileCallback::targets |
The TerrainQuad(s) whose zmin and zmax values must be read back.