proland::TileSamplerZ::State Class Reference

A state object to share the readback managers between all TileSamplerZ instances with the same tile storage. More...

List of all members.

Public Member Functions

 State (ptr< GPUTileStorage > storage)
 Creates a new State for the given tile storage.

Public Attributes

ptr< GPUTileStoragestorage
 The tile storage for which this State is built.
ptr< FrameBuffer > fbo
 Framebuffer object used to compute zmin and zmax of tiles.
BufferId readBuffer
 Buffer of FBO used to read back the computed zmin and zmax values.
ptr< Program > minmaxProg
 The custom "mipmapping" program used to compute min and max elevation values over a tile.
ptr< ReadbackManagertileReadback
 The readback manager used to perform asynchronous readbacks.
std::set< TreeZ *, TreeZSortneedReadback
 The set of texture tile that need to be read back.
GPUTileStorage::GPUSlotcameraSlot
 The slot of storage corresponding to the quad below the camera.
vec2i cameraOffset
 Relative offset in cameraSlot of the pixel under the camera.
unsigned int lastFrame
 The last frame for which a readback was performed.

Detailed Description

A state object to share the readback managers between all TileSamplerZ instances with the same tile storage.


Constructor & Destructor Documentation

proland::TileSamplerZ::State::State ( ptr< GPUTileStorage storage  ) 

Creates a new State for the given tile storage.


Member Data Documentation

Relative offset in cameraSlot of the pixel under the camera.

The value of this pixel is readback into TerrainNode::groundHeightAtCamera.

The slot of storage corresponding to the quad below the camera.

Framebuffer object used to compute zmin and zmax of tiles.

The last frame for which a readback was performed.

This is used to avoid doing more readbacks per frame than specified in the readback managers, when several TileSamplerZ sharing the same State are used.

The custom "mipmapping" program used to compute min and max elevation values over a tile.

The set of texture tile that need to be read back.

Buffer of FBO used to read back the computed zmin and zmax values.

The tile storage for which this State is built.

The readback manager used to perform asynchronous readbacks.


Generated on Sat May 12 09:41:39 2012 for proland by  doxygen 1.6.1