cesium-native
0.41.0
|
Geometry to be rendered with the given material. More...
#include <CesiumGltf/MeshPrimitive.h>
Classes | |
struct | Mode |
Known values for The topology type of primitives to render. More... | |
Public Attributes | |
std::unordered_map< std::string, int32_t > | attributes |
A plain JSON object, where each key corresponds to a mesh attribute semantic and each value is the index of the accessor containing attribute's data. | |
int32_t | indices = -1 |
The index of the accessor that contains the vertex indices. More... | |
int32_t | material = -1 |
The index of the material to apply to this primitive when rendering. | |
int32_t | mode = Mode::TRIANGLES |
The topology type of primitives to render. More... | |
std::vector< std::unordered_map< std::string, int32_t > > | targets |
An array of morph targets. | |
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 = "MeshPrimitive" |
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... | |
Geometry to be rendered with the given material.
Definition at line 17 of file MeshPrimitive.h.
int32_t CesiumGltf::MeshPrimitive::indices = -1 |
The index of the accessor that contains the vertex indices.
When this is undefined, the primitive defines non-indexed geometry. When defined, the accessor MUST have SCALAR
type and an unsigned integer component type.
Definition at line 54 of file MeshPrimitive.h.
int32_t CesiumGltf::MeshPrimitive::mode = Mode::TRIANGLES |
The topology type of primitives to render.
Known values are defined in Mode.
Definition at line 67 of file MeshPrimitive.h.