初始提交: UE5.3项目基础框架
This commit is contained in:
54
Plugins/CesiumForUnreal/Source/ThirdParty/include/CesiumGltf/Mesh.h
vendored
Normal file
54
Plugins/CesiumForUnreal/Source/ThirdParty/include/CesiumGltf/Mesh.h
vendored
Normal file
@ -0,0 +1,54 @@
|
||||
// This file was generated by generate-classes.
|
||||
// DO NOT EDIT THIS FILE!
|
||||
#pragma once
|
||||
|
||||
#include <CesiumGltf/Library.h>
|
||||
#include <CesiumGltf/MeshPrimitive.h>
|
||||
#include <CesiumGltf/NamedObject.h>
|
||||
|
||||
#include <vector>
|
||||
|
||||
namespace CesiumGltf {
|
||||
/**
|
||||
* @brief A set of primitives to be rendered. Its global transform is defined
|
||||
* by a node that references it.
|
||||
*/
|
||||
struct CESIUMGLTF_API Mesh final : public CesiumGltf::NamedObject {
|
||||
/**
|
||||
* @brief The original name of this type.
|
||||
*/
|
||||
static constexpr const char* TypeName = "Mesh";
|
||||
|
||||
/**
|
||||
* @brief An array of primitives, each defining geometry to be rendered.
|
||||
*/
|
||||
std::vector<CesiumGltf::MeshPrimitive> primitives;
|
||||
|
||||
/**
|
||||
* @brief Array of weights to be applied to the morph targets. The number of
|
||||
* array elements **MUST** match the number of morph targets.
|
||||
*/
|
||||
std::vector<double> weights;
|
||||
|
||||
/**
|
||||
* @brief Calculates the size in bytes of this object, including the contents
|
||||
* of all collections, pointers, and strings. This will NOT include the size
|
||||
* of any extensions attached to the object. Calling this method may be slow
|
||||
* as it requires traversing the object's entire structure.
|
||||
*/
|
||||
int64_t getSizeBytes() const {
|
||||
int64_t accum = 0;
|
||||
accum += int64_t(sizeof(Mesh));
|
||||
accum += CesiumGltf::NamedObject::getSizeBytes() -
|
||||
int64_t(sizeof(CesiumGltf::NamedObject));
|
||||
accum += int64_t(
|
||||
sizeof(CesiumGltf::MeshPrimitive) * this->primitives.capacity());
|
||||
for (const CesiumGltf::MeshPrimitive& value : this->primitives) {
|
||||
accum +=
|
||||
value.getSizeBytes() - int64_t(sizeof(CesiumGltf::MeshPrimitive));
|
||||
}
|
||||
accum += int64_t(sizeof(double) * this->weights.capacity());
|
||||
return accum;
|
||||
}
|
||||
};
|
||||
} // namespace CesiumGltf
|
||||
Reference in New Issue
Block a user