cesium-native 0.43.0
Loading...
Searching...
No Matches
IPrepareRasterOverlayRendererResources.h
1#pragma once
2
3#include "Library.h"
4
5#include <any>
6
7namespace CesiumGltf {
8struct ImageAsset;
9}
10
11namespace CesiumRasterOverlays {
12class RasterOverlayTile;
13}
14
15namespace CesiumRasterOverlays {
16
24class CESIUMRASTEROVERLAYS_API IPrepareRasterOverlayRendererResources {
25public:
39 const std::any& rendererOptions) = 0;
40
58 RasterOverlayTile& rasterTile,
59 void* pLoadThreadResult) = 0;
60
77 virtual void freeRaster(
78 const RasterOverlayTile& rasterTile,
79 void* pLoadThreadResult,
80 void* pMainThreadResult) noexcept = 0;
81};
82
83} // namespace CesiumRasterOverlays
An interface between Cesium Native and the application using it, allowing Cesium Native to pass loade...
virtual void * prepareRasterInMainThread(RasterOverlayTile &rasterTile, void *pLoadThreadResult)=0
Further preprares 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.
virtual void * prepareRasterInLoadThread(CesiumGltf::ImageAsset &image, const std::any &rendererOptions)=0
Prepares a raster overlay 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