A pool of TileOcclusionRendererProxy objects. Allows quick remapping of tiles to occlusion renderer proxies so new proxies do not have to be created for each new tile requesting occlusion results.
More...
#include <Cesium3DTilesSelection/TileOcclusionRendererProxy.h>
A pool of TileOcclusionRendererProxy objects. Allows quick remapping of tiles to occlusion renderer proxies so new proxies do not have to be created for each new tile requesting occlusion results.
Definition at line 80 of file TileOcclusionRendererProxy.h.
◆ TileOcclusionRendererProxyPool()
Cesium3DTilesSelection::TileOcclusionRendererProxyPool::TileOcclusionRendererProxyPool |
( |
int32_t |
maximumPoolSize | ) |
|
Constructs a new instance.
- Parameters
-
◆ createProxy()
◆ destroyProxy()
◆ fetchOcclusionProxyForTile()
const TileOcclusionRendererProxy* Cesium3DTilesSelection::TileOcclusionRendererProxyPool::fetchOcclusionProxyForTile |
( |
const Tile & |
tile, |
|
|
int32_t |
currentFrame |
|
) |
| |
Get the TileOcclusionRendererProxy mapped to the tile. Attempts to create a new mapping if one does not exist already by assigning a proxy from the free list.
- Parameters
-
tile | The tile. |
currentFrame | The current frame number. |
- Returns
- The occlusion proxy mapped to this tile, or nullptr if one can't be made.
The documentation for this class was generated from the following file: