cesium-native 0.43.0
Loading...
Searching...
No Matches
ExtensionKhrTextureTransform.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 <optional>
10#include <vector>
11
12namespace CesiumGltf {
17struct CESIUMGLTF_API ExtensionKhrTextureTransform final
22 static constexpr const char* TypeName = "ExtensionKhrTextureTransform";
25 static constexpr const char* ExtensionName = "KHR_texture_transform";
26
31 std::vector<double> offset = {0, 0};
32
37 double rotation = 0;
38
42 std::vector<double> scale = {1, 1};
43
48 std::optional<int64_t> texCoord;
49
56 int64_t getSizeBytes() const {
57 int64_t accum = 0;
58 accum += int64_t(sizeof(ExtensionKhrTextureTransform));
60 int64_t(sizeof(CesiumUtility::ExtensibleObject));
61 accum += int64_t(sizeof(double) * this->offset.capacity());
62 accum += int64_t(sizeof(double) * this->scale.capacity());
63 return accum;
64 }
65};
66} // namespace CesiumGltf
Classes for working with glTF models.
glTF extension that enables shifting and scaling UV coordinates on a per-texture basis
int64_t getSizeBytes() const
Calculates the size in bytes of this object, including the contents of all collections,...
std::optional< int64_t > texCoord
Overrides the textureInfo texCoord value if supplied, and if this extension is supported.
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 ...