cesium-native  0.41.0
IPrepareRasterOverlayRendererResources.h
1 #pragma once
2 
3 #include "Library.h"
4 
5 #include <any>
6 
7 namespace CesiumGltf {
8 struct ImageAsset;
9 }
10 
11 namespace CesiumRasterOverlays {
12 class RasterOverlayTile;
13 }
14 
15 namespace CesiumRasterOverlays {
16 
17 class CESIUMRASTEROVERLAYS_API IPrepareRasterOverlayRendererResources {
18 public:
32  const std::any& rendererOptions) = 0;
33 
51  RasterOverlayTile& rasterTile,
52  void* pLoadThreadResult) = 0;
53 
70  virtual void freeRaster(
71  const RasterOverlayTile& rasterTile,
72  void* pLoadThreadResult,
73  void* pMainThreadResult) noexcept = 0;
74 };
75 
76 } // namespace CesiumRasterOverlays
virtual void * prepareRasterInMainThread(RasterOverlayTile &rasterTile, void *pLoadThreadResult)=0
Further preprares a raster overlay tile.
virtual void * prepareRasterInLoadThread(CesiumGltf::ImageAsset &image, const std::any &rendererOptions)=0
Prepares a raster overlay tile.
virtual void freeRaster(const RasterOverlayTile &rasterTile, void *pLoadThreadResult, void *pMainThreadResult) noexcept=0
Frees previously-prepared renderer resources for a raster tile.
Raster image data for a tile in a quadtree.
Classes for working with glTF models.
Classes for raster overlays, which allow draping massive 2D textures over a model.
A 2D image asset, including its pixel data. The image may have mipmaps, and it may be encoded in a GP...
Definition: ImageAsset.h:34