cesium-native 0.43.0
Loading...
Searching...
No Matches
BufferView.h
1// This file was generated by generate-classes.
2// DO NOT EDIT THIS FILE!
3#pragma once
4
5#include <Cesium3DTiles/Library.h>
6#include <CesiumUtility/ExtensibleObject.h>
7
8#include <cstdint>
9#include <optional>
10#include <string>
11
12namespace Cesium3DTiles {
16struct CESIUM3DTILES_API BufferView final
21 static constexpr const char* TypeName = "BufferView";
22
26 int64_t buffer = int64_t();
27
31 int64_t byteOffset = int64_t();
32
36 int64_t byteLength = int64_t();
37
41 std::optional<std::string> name;
42
49 int64_t getSizeBytes() const {
50 int64_t accum = 0;
51 accum += int64_t(sizeof(BufferView));
53 int64_t(sizeof(CesiumUtility::ExtensibleObject));
54 if (this->name) {
55 accum += int64_t(this->name->capacity() * sizeof(char));
56 }
57 return accum;
58 }
59};
60} // namespace Cesium3DTiles
Classes for using 3D Tiles.
Definition Buffer.h:7
A contiguous subset of a buffer.
Definition BufferView.h:17
std::optional< std::string > name
The name of the bufferView.
Definition BufferView.h:41
int64_t getSizeBytes() const
Calculates the size in bytes of this object, including the contents of all collections,...
Definition BufferView.h:49
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 ...