cesium-native 0.43.0
Loading...
Searching...
No Matches
Skin.h
1// This file was generated by generate-classes.
2// DO NOT EDIT THIS FILE!
3#pragma once
4
5#include <CesiumGltf/Library.h>
6#include <CesiumGltf/NamedObject.h>
7
8#include <cstdint>
9#include <vector>
10
11namespace CesiumGltf {
15struct CESIUMGLTF_API Skin final : public CesiumGltf::NamedObject {
19 static constexpr const char* TypeName = "Skin";
20
29 int32_t inverseBindMatrices = -1;
30
37 int32_t skeleton = -1;
38
42 std::vector<int32_t> joints;
43
50 int64_t getSizeBytes() const {
51 int64_t accum = 0;
52 accum += int64_t(sizeof(Skin));
54 int64_t(sizeof(CesiumGltf::NamedObject));
55 accum += int64_t(sizeof(int32_t) * this->joints.capacity());
56 return accum;
57 }
58};
59} // namespace CesiumGltf
Classes for working with glTF models.
The base class for objects in a glTF that have a name.
Definition NamedObject.h:15
int64_t getSizeBytes() const
Calculates the size in bytes of this object, including the contents of all collections,...
Definition NamedObject.h:29
Joints and matrices defining a skin.
Definition Skin.h:15
std::vector< int32_t > joints
Indices of skeleton nodes, used as joints in this skin.
Definition Skin.h:42
int64_t getSizeBytes() const
Calculates the size in bytes of this object, including the contents of all collections,...
Definition Skin.h:50