cesium-native
0.41.0
|
The root object for a glTF asset. More...
#include <CesiumGltf/ModelSpec.h>
Public Attributes | |
std::vector< std::string > | extensionsUsed |
Names of glTF extensions used in this asset. | |
std::vector< std::string > | extensionsRequired |
Names of glTF extensions required to properly load this asset. | |
std::vector< CesiumGltf::Accessor > | accessors |
An array of accessors. More... | |
std::vector< CesiumGltf::Animation > | animations |
An array of keyframe animations. | |
CesiumGltf::Asset | asset |
Metadata about the glTF asset. | |
std::vector< CesiumGltf::Buffer > | buffers |
An array of buffers. More... | |
std::vector< CesiumGltf::BufferView > | bufferViews |
An array of bufferViews. More... | |
std::vector< CesiumGltf::Camera > | cameras |
An array of cameras. More... | |
std::vector< CesiumGltf::Image > | images |
An array of images. More... | |
std::vector< CesiumGltf::Material > | materials |
An array of materials. More... | |
std::vector< CesiumGltf::Mesh > | meshes |
An array of meshes. More... | |
std::vector< CesiumGltf::Node > | nodes |
An array of nodes. | |
std::vector< CesiumGltf::Sampler > | samplers |
An array of samplers. More... | |
int32_t | scene = -1 |
The index of the default scene. More... | |
std::vector< CesiumGltf::Scene > | scenes |
An array of scenes. | |
std::vector< CesiumGltf::Skin > | skins |
An array of skins. More... | |
std::vector< CesiumGltf::Texture > | textures |
An array of textures. | |
Public Attributes inherited from CesiumUtility::ExtensibleObject | |
std::unordered_map< std::string, std::any > | extensions |
The extensions attached to this object. More... | |
JsonValue::Object | extras |
Application-specific data. More... | |
JsonValue::Object | unknownProperties |
Unknown properties that exist on this object but do not have any representation in the statically-typed classes. More... | |
Static Public Attributes | |
static constexpr const char * | TypeName = "Model" |
Friends | |
struct | Model |
Additional Inherited Members | |
Public Member Functions inherited from CesiumUtility::ExtensibleObject | |
template<typename T > | |
bool | hasExtension () const noexcept |
Checks if an extension exists given its static type. More... | |
template<typename T > | |
const T * | getExtension () const noexcept |
Gets an extension given its static type. More... | |
template<typename T > | |
T * | getExtension () noexcept |
Gets an extension given its static type. More... | |
const JsonValue * | getGenericExtension (const std::string &extensionName) const noexcept |
Gets a generic extension with the given name as a CesiumUtility::JsonValue. More... | |
JsonValue * | getGenericExtension (const std::string &extensionName) noexcept |
Gets a generic extension with the given name as a CesiumUtility::JsonValue. More... | |
template<typename T , typename... ConstructorArgumentTypes> | |
T & | addExtension (ConstructorArgumentTypes &&... constructorArguments) |
Adds a statically-typed extension to this object. More... | |
template<typename T > | |
void | removeExtension () |
Removes a statically-typed extension from this object. More... | |
The root object for a glTF asset.
Definition at line 31 of file ModelSpec.h.
std::vector<CesiumGltf::Accessor> CesiumGltf::ModelSpec::accessors |
An array of accessors.
An accessor is a typed view into a bufferView.
Definition at line 49 of file ModelSpec.h.
std::vector<CesiumGltf::Buffer> CesiumGltf::ModelSpec::buffers |
An array of buffers.
A buffer points to binary geometry, animation, or skins.
Definition at line 66 of file ModelSpec.h.
std::vector<CesiumGltf::BufferView> CesiumGltf::ModelSpec::bufferViews |
An array of bufferViews.
A bufferView is a view into a buffer generally representing a subset of the buffer.
Definition at line 74 of file ModelSpec.h.
std::vector<CesiumGltf::Camera> CesiumGltf::ModelSpec::cameras |
An array of cameras.
A camera defines a projection matrix.
Definition at line 81 of file ModelSpec.h.
std::vector<CesiumGltf::Image> CesiumGltf::ModelSpec::images |
An array of images.
An image defines data used to create a texture.
Definition at line 88 of file ModelSpec.h.
std::vector<CesiumGltf::Material> CesiumGltf::ModelSpec::materials |
An array of materials.
A material defines the appearance of a primitive.
Definition at line 95 of file ModelSpec.h.
std::vector<CesiumGltf::Mesh> CesiumGltf::ModelSpec::meshes |
An array of meshes.
A mesh is a set of primitives to be rendered.
Definition at line 102 of file ModelSpec.h.
std::vector<CesiumGltf::Sampler> CesiumGltf::ModelSpec::samplers |
An array of samplers.
A sampler contains properties for texture filtering and wrapping modes.
Definition at line 114 of file ModelSpec.h.
int32_t CesiumGltf::ModelSpec::scene = -1 |
The index of the default scene.
This property MUST NOT be defined, when scenes
is undefined.
Definition at line 121 of file ModelSpec.h.
std::vector<CesiumGltf::Skin> CesiumGltf::ModelSpec::skins |
An array of skins.
A skin is defined by joints and matrices.
Definition at line 133 of file ModelSpec.h.