5 #include "CesiumGltf/Library.h"
7 #include <CesiumUtility/ExtensibleObject.h>
10 #include <unordered_map>
19 static inline constexpr
const char* TypeName =
"MeshPrimitive";
25 static constexpr int32_t POINTS = 0;
27 static constexpr int32_t LINES = 1;
29 static constexpr int32_t LINE_LOOP = 2;
31 static constexpr int32_t LINE_STRIP = 3;
33 static constexpr int32_t TRIANGLES = 4;
35 static constexpr int32_t TRIANGLE_STRIP = 5;
37 static constexpr int32_t TRIANGLE_FAN = 6;
59 int32_t material = -1;
67 int32_t mode = Mode::TRIANGLES;
72 std::vector<std::unordered_map<std::string, int32_t>>
targets;
Classes for working with glTF models.
Known values for The topology type of primitives to render.
Geometry to be rendered with the given material.
std::vector< std::unordered_map< std::string, int32_t > > targets
An array of morph targets.
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 in...
The base class for objects that have extensions and extras.