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

#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 166 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 176 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 171 of file AccessorUtility.h.


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