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>
|
| TileOcclusionRendererProxyPool (int32_t maximumPoolSize) |
| Constructs a new instance.
|
|
virtual | ~TileOcclusionRendererProxyPool () |
| Destroys this pool.
|
|
void | destroyPool () |
| Destroy the pool.
|
|
const TileOcclusionRendererProxy * | 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.
|
|
void | pruneOcclusionProxyMappings () |
| Prunes the occlusion proxy mappings and removes any mappings that were unused the last frame. Any mapping corresponding to a tile that was not visited will have been unused. Occlusion proxies from removed mappings will be returned to the free list.
|
|
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 81 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: