cesium-native 0.43.0
|
Options for how to read a glTF. More...
#include <CesiumGltfReader/GltfReader.h>
Public Attributes | |
bool | decodeDataUrls = true |
Whether data URLs in buffers and images should be automatically decoded as part of the load process. | |
bool | clearDecodedDataUrls = true |
Whether data URLs should be cleared after they are successfully decoded. | |
bool | decodeEmbeddedImages = true |
Whether embedded images in CesiumGltf::Model::buffers should be automatically decoded as part of the load process. | |
bool | resolveExternalImages = true |
Whether external images should be resolved. | |
bool | decodeDraco = true |
Whether geometry compressed using the KHR_draco_mesh_compression extension should be automatically decoded as part of the load process. | |
bool | decodeMeshOptData = true |
Whether the mesh data are decompressed as part of the load process, or left in the compressed format according to the EXT_meshopt_compression extension. | |
bool | dequantizeMeshData = true |
Whether the quantized mesh data are dequantized and converted to floating-point values when loading, according to the KHR_mesh_quantization extension. | |
bool | applyTextureTransform = true |
Whether the texture coordinates of a texture are transformed or not, according to the KHR_texture_transform extension. | |
CesiumGltf::Ktx2TranscodeTargets | ktx2TranscodeTargets |
For each possible input transmission format, this struct names the ideal target gpu-compressed pixel format to transcode to. | |
CesiumUtility::IntrusivePointer< GltfSharedAssetSystem > | pSharedAssetSystem |
bool | resolveExternalStructuralMetadata = true |
Whether the schemaUri property of EXT_structural_metadata will be properly resolved. If false, any external schemas will be ignored. | |
Options for how to read a glTF.
Definition at line 50 of file GltfReader.h.
bool CesiumGltfReader::GltfReaderOptions::applyTextureTransform = true |
Whether the texture coordinates of a texture are transformed or not, according to the KHR_texture_transform extension.
Definition at line 104 of file GltfReader.h.
bool CesiumGltfReader::GltfReaderOptions::clearDecodedDataUrls = true |
Whether data URLs should be cleared after they are successfully decoded.
This reduces the memory usage of the model.
Definition at line 63 of file GltfReader.h.
bool CesiumGltfReader::GltfReaderOptions::decodeDataUrls = true |
Whether data URLs in buffers and images should be automatically decoded as part of the load process.
Definition at line 55 of file GltfReader.h.
bool CesiumGltfReader::GltfReaderOptions::decodeDraco = true |
Whether geometry compressed using the KHR_draco_mesh_compression
extension should be automatically decoded as part of the load process.
Definition at line 84 of file GltfReader.h.
bool CesiumGltfReader::GltfReaderOptions::decodeEmbeddedImages = true |
Whether embedded images in CesiumGltf::Model::buffers
should be automatically decoded as part of the load process.
The CesiumGltf::ImageSpec::mimeType
property is ignored, and instead the stb_image library is used to decode images in JPG
, PNG
, TGA
, BMP
, PSD
, GIF
, HDR
, or PIC
format.
Definition at line 73 of file GltfReader.h.
bool CesiumGltfReader::GltfReaderOptions::decodeMeshOptData = true |
Whether the mesh data are decompressed as part of the load process, or left in the compressed format according to the EXT_meshopt_compression extension.
Definition at line 91 of file GltfReader.h.
bool CesiumGltfReader::GltfReaderOptions::dequantizeMeshData = true |
Whether the quantized mesh data are dequantized and converted to floating-point values when loading, according to the KHR_mesh_quantization extension.
Definition at line 98 of file GltfReader.h.
CesiumGltf::Ktx2TranscodeTargets CesiumGltfReader::GltfReaderOptions::ktx2TranscodeTargets |
For each possible input transmission format, this struct names the ideal target gpu-compressed pixel format to transcode to.
Definition at line 110 of file GltfReader.h.
CesiumUtility::IntrusivePointer<GltfSharedAssetSystem> CesiumGltfReader::GltfReaderOptions::pSharedAssetSystem |
The shared asset system that will be used to store all of the shared assets that might appear in this glTF.
Definition at line 116 of file GltfReader.h.
bool CesiumGltfReader::GltfReaderOptions::resolveExternalImages = true |
Whether external images should be resolved.
Definition at line 78 of file GltfReader.h.
bool CesiumGltfReader::GltfReaderOptions::resolveExternalStructuralMetadata = true |
Whether the schemaUri
property of EXT_structural_metadata
will be properly resolved. If false, any external schemas will be ignored.
Definition at line 123 of file GltfReader.h.