HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
GLTF_NAMESPACE::GLTF_Util Class Reference

#include <GLTF_Util.h>

Static Public Member Functions

template<typename T >
static T readInterleavedElement (unsigned char *data, uint32 stride, uint32 index)
 
static const char * typeGetName (GLTF_Type type)
 
static GLTF_Int componentTypeGetBytes (GLTF_ComponentType type)
 
static GLTF_Int typeGetElements (GLTF_Type type)
 
static GLTF_Int getDefaultStride (GLTF_Type type, GLTF_ComponentType component_type)
 
static GLTF_Int getStride (uint32 previous_stride, GLTF_Type type, GLTF_ComponentType component_type)
 
static GLTF_Type getTypeForTupleSize (uint32 tuplesize)
 
static UT_Array< UT_StringgetSceneList (const UT_String &filename)
 
static bool DecomposeMatrixToTRS (const UT_Matrix4F &mat, UT_Vector3F &translation, UT_Quaternion &rotation, UT_Vector3F scale)
 

Detailed Description

Definition at line 37 of file GLTF_Util.h.

Member Function Documentation

static GLTF_Int GLTF_NAMESPACE::GLTF_Util::componentTypeGetBytes ( GLTF_ComponentType  type)
static
static bool GLTF_NAMESPACE::GLTF_Util::DecomposeMatrixToTRS ( const UT_Matrix4F mat,
UT_Vector3F translation,
UT_Quaternion rotation,
UT_Vector3F  scale 
)
static
static GLTF_Int GLTF_NAMESPACE::GLTF_Util::getDefaultStride ( GLTF_Type  type,
GLTF_ComponentType  component_type 
)
static
static UT_Array<UT_String> GLTF_NAMESPACE::GLTF_Util::getSceneList ( const UT_String filename)
static

Returns a list of the scene names in the given filename, where the index in the returned array corrosponds to the scene index, and the value corrosponds to the name if one exists, and "" othewise.

static GLTF_Int GLTF_NAMESPACE::GLTF_Util::getStride ( uint32  previous_stride,
GLTF_Type  type,
GLTF_ComponentType  component_type 
)
static

Returns 0 if previous_stride == 0 and GetDefaultStride otherwise.

static GLTF_Type GLTF_NAMESPACE::GLTF_Util::getTypeForTupleSize ( uint32  tuplesize)
static
template<typename T >
static T GLTF_NAMESPACE::GLTF_Util::readInterleavedElement ( unsigned char *  data,
uint32  stride,
uint32  index 
)
inlinestatic

Definition at line 42 of file GLTF_Util.h.

static GLTF_Int GLTF_NAMESPACE::GLTF_Util::typeGetElements ( GLTF_Type  type)
static
static const char* GLTF_NAMESPACE::GLTF_Util::typeGetName ( GLTF_Type  type)
static

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