cesium-native 0.43.0
Loading...
Searching...
No Matches
BinaryToGltfConverter.h
1#pragma once
2
3#include <Cesium3DTilesContent/GltfConverterResult.h>
4#include <CesiumAsync/Future.h>
5#include <CesiumGltfReader/GltfReader.h>
6
7#include <cstddef>
8#include <span>
9
10namespace Cesium3DTilesContent {
11struct AssetFetcher;
12
17public:
28 const std::span<const std::byte>& gltfBinary,
30 const AssetFetcher& assetFetcher);
31
32private:
33 static GltfConverterResult convertImmediate(
34 const std::span<const std::byte>& gltfBinary,
36 const AssetFetcher& assetFetcher);
37 static CesiumGltfReader::GltfReader _gltfReader;
38};
39} // namespace Cesium3DTilesContent
A value that will be available in the future, as produced by AsyncSystem.
Definition Promise.h:11
Reads glTF models and images.
Definition GltfReader.h:129
Classes that support loading and converting 3D Tiles tile content.
Converts a binary glTF model (glb) to a CesiumGltf::Model.
static CesiumAsync::Future< GltfConverterResult > convert(const std::span< const std::byte > &gltfBinary, const CesiumGltfReader::GltfReaderOptions &options, const AssetFetcher &assetFetcher)
Converts a glb binary file to a glTF model.
The result of converting a binary content to gltf model.
Options for how to read a glTF.
Definition GltfReader.h:50