5#include <CesiumGltf/Library.h>
6#include <CesiumUtility/ExtensibleObject.h>
22 static constexpr const char* TypeName =
"ExtensionKhrTextureTransform";
25 static constexpr const char* ExtensionName =
"KHR_texture_transform";
31 std::vector<double> offset = {0, 0};
42 std::vector<double> scale = {1, 1};
61 accum += int64_t(
sizeof(
double) * this->offset.capacity());
62 accum += int64_t(
sizeof(
double) * this->scale.capacity());
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 ...