cesium-native  0.41.0
CesiumGltf::TexCoordFromAccessor Struct Reference

#include <CesiumGltf/AccessorUtility.h>

Public Member Functions

std::optional< glm::dvec2 > operator() (const AccessorView< AccessorTypes::VEC2< float >> &value)
 
template<typename T >
std::optional< glm::dvec2 > operator() (const AccessorView< AccessorTypes::VEC2< T >> &value)
 

Public Attributes

int64_t index
 

Detailed Description

Visitor that retrieves the texture coordinates from the given accessor type as a glm::dvec2. This should be initialized with the target index.

There are technically no invalid UV values because of clamp / wrap behavior, so we use std::nullopt to denote an erroneous value.

Definition at line 292 of file AccessorUtility.h.


The documentation for this struct was generated from the following file: