cesium-native 0.43.0
|
A utility class that parses KHR_texture_transform parameters and transforms input texture coordinates. More...
#include <CesiumGltf/KhrTextureTransform.h>
Public Member Functions | |
KhrTextureTransform () noexcept | |
Constructs a texture transformation with identity values. | |
KhrTextureTransform (const ExtensionKhrTextureTransform &extension) noexcept | |
Constructs a texture transformation from the given extension. | |
KhrTextureTransformStatus | status () const noexcept |
The current KhrTextureTransformStatus of the transform operation. | |
glm::dvec2 | offset () const noexcept |
Gets the offset of the texture transform. | |
double | rotation () const noexcept |
Gets the rotation (in radians) of the texture transform. | |
glm::dvec2 | rotationSineCosine () const noexcept |
Gets the sine and cosine of the rotation in the texture transform. This is cached to avoid re-computing the values in the future. | |
glm::dvec2 | scale () const noexcept |
Gets the scale of the texture transform. | |
glm::dvec2 | applyTransform (double u, double v) const noexcept |
Applies this texture transformation to the input coordinates. | |
std::optional< int64_t > | getTexCoordSetIndex () const noexcept |
Gets the texture coordinate set index used by this texture transform. If defined, this should override the set index of the texture's original textureInfo. | |
A utility class that parses KHR_texture_transform parameters and transforms input texture coordinates.
Definition at line 25 of file KhrTextureTransform.h.
|
inlinenoexcept |
Gets the texture coordinate set index used by this texture transform. If defined, this should override the set index of the texture's original textureInfo.
Definition at line 76 of file KhrTextureTransform.h.
|
inlinenoexcept |
Gets the offset of the texture transform.
Definition at line 46 of file KhrTextureTransform.h.
|
inlinenoexcept |
Gets the rotation (in radians) of the texture transform.
Definition at line 51 of file KhrTextureTransform.h.
|
inlinenoexcept |
Gets the sine and cosine of the rotation in the texture transform. This is cached to avoid re-computing the values in the future.
Definition at line 57 of file KhrTextureTransform.h.
|
inlinenoexcept |
Gets the scale of the texture transform.
Definition at line 64 of file KhrTextureTransform.h.
|
inlinenoexcept |
The current KhrTextureTransformStatus of the transform operation.
Definition at line 41 of file KhrTextureTransform.h.