cesium-native 0.62.0
Loading...
Searching...
No Matches
CesiumGltf::NumIndicesFromAccessor Struct Reference

Visitor that returns the number of indices contained in an IndexAccessorType variant. More...

#include <CesiumGltf/AccessorUtility.h>

Public Member Functions

int64_t operator() (std::monostate)
 Attempts to obtain a number of indices from an empty IndexAccessorType, resulting in 0.
 
template<typename T>
int64_t operator() (const AccessorView< T > &value)
 Attempts to obtain a number of indices from an AccessorView.
 

Detailed Description

Visitor that returns the number of indices contained in an IndexAccessorType variant.

Definition at line 308 of file AccessorUtility.h.

Member Function Documentation

◆ operator()() [1/2]

template<typename T>
int64_t CesiumGltf::NumIndicesFromAccessor::operator() ( const AccessorView< T > & value)
inline

Attempts to obtain a number of indices from an AccessorView.

Definition at line 318 of file AccessorUtility.h.

◆ operator()() [2/2]

int64_t CesiumGltf::NumIndicesFromAccessor::operator() ( std::monostate )
inline

Attempts to obtain a number of indices from an empty IndexAccessorType, resulting in 0.

Definition at line 313 of file AccessorUtility.h.


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