cesium-native 0.45.0
Loading...
Searching...
No Matches
Padding.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 <CesiumUtility/ExtensibleObject.h>
7
8#include <cstdint>
9#include <vector>
10
11namespace CesiumGltf {
16struct CESIUMGLTF_API Padding final : public CesiumUtility::ExtensibleObject {
20 static constexpr const char* TypeName = "Padding";
21
25 std::vector<int64_t> before;
26
30 std::vector<int64_t> after;
31
38 int64_t getSizeBytes() const {
39 int64_t accum = 0;
40 accum += int64_t(sizeof(Padding));
42 int64_t(sizeof(CesiumUtility::ExtensibleObject));
43 accum += int64_t(sizeof(int64_t) * this->before.capacity());
44 accum += int64_t(sizeof(int64_t) * this->after.capacity());
45 return accum;
46 }
47};
48} // namespace CesiumGltf
Classes for working with glTF models.
The padding around a voxel grid. Specifies how many rows of attribute data come from neighboring grid...
Definition Padding.h:16
std::vector< int64_t > before
before
Definition Padding.h:25
std::vector< int64_t > after
after
Definition Padding.h:30
int64_t getSizeBytes() const
Calculates the size in bytes of this object, including the contents of all collections,...
Definition Padding.h:38
The base class for objects that have extensions and extras.
int64_t getSizeBytes() const
Calculates the size in bytes of this ExtensibleObject, including all of its extras but NOT including ...