cesium-native 0.43.0
Loading...
Searching...
No Matches
Texture.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
10namespace CesiumGltf {
14struct CESIUMGLTF_API Texture final : public CesiumGltf::NamedObject {
18 static constexpr const char* TypeName = "Texture";
19
24 int32_t sampler = -1;
25
31 int32_t source = -1;
32
39 int64_t getSizeBytes() const {
40 int64_t accum = 0;
41 accum += int64_t(sizeof(Texture));
43 int64_t(sizeof(CesiumGltf::NamedObject));
44
45 return accum;
46 }
47};
48} // 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
A texture and its sampler.
Definition Texture.h:14
int64_t getSizeBytes() const
Calculates the size in bytes of this object, including the contents of all collections,...
Definition Texture.h:39