cesium-native
0.43.0
Loading...
Searching...
No Matches
FeatureIdTexture.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/TextureInfo.h>
7
8
#include <cstdint>
9
#include <vector>
10
11
namespace
CesiumGltf
{
15
struct
CESIUMGLTF_API
FeatureIdTexture
final :
public
TextureInfo
{
19
static
constexpr
const
char
* TypeName =
"FeatureIdTexture"
;
20
27
std::vector<int64_t> channels = {0};
28
35
int64_t
getSizeBytes
()
const
{
36
int64_t accum = 0;
37
accum += int64_t(
sizeof
(
FeatureIdTexture
));
38
accum += TextureInfo::getSizeBytes() - int64_t(
sizeof
(
TextureInfo
));
39
accum += int64_t(
sizeof
(int64_t) * this->channels.capacity());
40
return
accum;
41
}
42
};
43
}
// namespace CesiumGltf
CesiumGltf
Classes for working with glTF models.
Definition
GltfConverterUtility.h:17
CesiumGltf::FeatureIdTexture
A texture containing feature IDs.
Definition
FeatureIdTexture.h:15
CesiumGltf::FeatureIdTexture::getSizeBytes
int64_t getSizeBytes() const
Calculates the size in bytes of this object, including the contents of all collections,...
Definition
FeatureIdTexture.h:35
CesiumGltf::TextureInfo
Reference to a texture.
Definition
TextureInfo.h:14
CesiumGltf
generated
include
CesiumGltf
FeatureIdTexture.h
Generated by
1.12.0