cesium-native 0.43.0
Loading...
Searching...
No Matches
GltfSharedAssetSystem.h
1#pragma once
2
3#include <CesiumAsync/SharedAssetDepot.h>
4#include <CesiumGltfReader/NetworkImageAssetDescriptor.h>
5#include <CesiumGltfReader/NetworkSchemaAssetDescriptor.h>
6
7namespace CesiumGltf {
8struct Schema;
9}
10
11namespace CesiumGltfReader {
12
18 : public CesiumUtility::ReferenceCountedThreadSafe<GltfSharedAssetSystem> {
19public:
25
26 virtual ~GltfSharedAssetSystem() = default;
27
34 using ImageDepot = CesiumAsync::
35 SharedAssetDepot<CesiumGltf::ImageAsset, NetworkImageAssetDescriptor>;
36
41
48 using SchemaDepot = CesiumAsync::
49 SharedAssetDepot<CesiumGltf::Schema, NetworkSchemaAssetDescriptor>;
50
55};
56
57} // namespace CesiumGltfReader
Contains assets that are potentially shared across multiple glTF models.
CesiumAsync:: SharedAssetDepot< CesiumGltf::ImageAsset, NetworkImageAssetDescriptor > ImageDepot
A depot containing images loaded from glTFs.
CesiumUtility::IntrusivePointer< ImageDepot > pImage
The asset depot for images.
CesiumAsync:: SharedAssetDepot< CesiumGltf::Schema, NetworkSchemaAssetDescriptor > SchemaDepot
A depot containing schemas loaded from URIs contained in the glTF EXT_structural_metadata extension.
static CesiumUtility::IntrusivePointer< GltfSharedAssetSystem > getDefault()
Obtains an IntrusivePointer to the GltfSharedAssetSystem singleton.
CesiumUtility::IntrusivePointer< SchemaDepot > pExternalMetadataSchema
The asset depot for schemas.
A smart pointer that calls addReference and releaseReference on the controlled object.
A reference-counted base class, meant to be used with IntrusivePointer.
Classes for reading glTF models.
Definition GltfReader.h:24
Classes for working with glTF models.