|
HDK
|
#include <GLTF_CgltfWrapper.h>
Classes | |
| struct | CgltfDataDeleter |
Public Member Functions | |
| GLTF_CgltfWrapper () | |
| ~GLTF_CgltfWrapper () | |
| void | setCgltfData (UT_UniquePtr< cgltf_data, CgltfDataDeleter > &&data) |
| cgltf_data * | getCgltfData () |
| const cgltf_data * | getCgltfData () const |
| cgltf_options & | getCgltfOptions () |
| const cgltf_options & | getCgltfOptions () const |
| bool | fixupPointers () |
| void | initCgltfData (bool writing_mode=false) |
| void | initAsHoudiniAsset (cgltf_asset &asset) |
| void | initAttribute (cgltf_attribute &attrib, cgltf_size accessor_index, const char *name, cgltf_accessor *data_accessor=nullptr) |
| template<typename T > | |
| T & | appendProperty (T **propList, cgltf_size &propSize) |
| template<typename T > | |
| T *& | appendPropertyRef (T ***propList, cgltf_size &propSize) |
| void | setMainBuffer (cgltf_buffer &buf, uint8_t *data, cgltf_size size) |
| GLTF_DEFINE_APPEND_FUNC (appendAccessor, cgltf_accessor, myCgltfData->accessors, myCgltfData->accessors_count) | |
| GLTF_DEFINE_APPEND_FUNC (appendAnimation, cgltf_animation, myCgltfData->animations, myCgltfData->animations_count) | |
| GLTF_DEFINE_APPEND_FUNC (appendBuffer, cgltf_buffer, myCgltfData->buffers, myCgltfData->buffers_count) | |
| GLTF_DEFINE_APPEND_FUNC (appendBufferView, cgltf_buffer_view, myCgltfData->buffer_views, myCgltfData->buffer_views_count) | |
| GLTF_DEFINE_APPEND_FUNC (appendCamera, cgltf_camera, myCgltfData->cameras, myCgltfData->cameras_count) | |
| GLTF_DEFINE_APPEND_FUNC (appendImage, cgltf_image, myCgltfData->images, myCgltfData->images_count) | |
| GLTF_DEFINE_APPEND_FUNC (appendLight, cgltf_light, myCgltfData->lights, myCgltfData->lights_count) | |
| GLTF_DEFINE_APPEND_FUNC (appendMaterial, cgltf_material, myCgltfData->materials, myCgltfData->materials_count) | |
| GLTF_DEFINE_APPEND_FUNC (appendMesh, cgltf_mesh, myCgltfData->meshes, myCgltfData->meshes_count) | |
| GLTF_DEFINE_APPEND_FUNC (appendNode, cgltf_node, myCgltfData->nodes, myCgltfData->nodes_count) | |
| GLTF_DEFINE_APPEND_FUNC (appendTexture, cgltf_texture, myCgltfData->textures, myCgltfData->textures_count) | |
| cgltf_scene & | appendSceneAndSetToDefault () |
| cgltf_attribute & | appendAttribute (cgltf_size mesh_id, cgltf_size prim_id, cgltf_size accessor_id, cgltf_attribute_type type, const char *name) |
| cgltf_attribute & | appendDracoAttribute (cgltf_size mesh_id, cgltf_size prim_id, cgltf_size draco_id, cgltf_attribute_type type, const char *name) |
| cgltf_primitive & | appendPrimitive (cgltf_size mesh_id) |
| cgltf_animation_sampler & | appendAnimationSampler (cgltf_animation &anim) |
| cgltf_animation_channel & | appendAnimationChannel (cgltf_animation &anim) |
| cgltf_result | loadBufferFile (cgltf_size buf_size, const char *buf_uri, const char *gltf_path, void **data) |
Static Public Member Functions | |
| static void | writeCharProperty (char **prop, const char *src) |
| template<typename T > | |
| static void | initProperty (T *prop) |
| template<typename T > | |
| static bool | propHasExtras (const T *prop) |
| static UT_Options | getExtrasAsOptions (const cgltf_extras &extras) |
Definition at line 47 of file GLTF_CgltfWrapper.h.
|
inline |
Definition at line 56 of file GLTF_CgltfWrapper.h.
|
inline |
Definition at line 57 of file GLTF_CgltfWrapper.h.
|
inline |
Definition at line 338 of file GLTF_CgltfWrapper.h.
|
inline |
Definition at line 330 of file GLTF_CgltfWrapper.h.
|
inline |
Definition at line 274 of file GLTF_CgltfWrapper.h.
|
inline |
Definition at line 296 of file GLTF_CgltfWrapper.h.
|
inline |
Definition at line 319 of file GLTF_CgltfWrapper.h.
|
inline |
Definition at line 131 of file GLTF_CgltfWrapper.h.
|
inline |
Definition at line 156 of file GLTF_CgltfWrapper.h.
|
inline |
Definition at line 264 of file GLTF_CgltfWrapper.h.
| bool GLTF_CgltfWrapper::fixupPointers | ( | ) |
|
inline |
Definition at line 64 of file GLTF_CgltfWrapper.h.
|
inline |
Definition at line 65 of file GLTF_CgltfWrapper.h.
|
inline |
Definition at line 67 of file GLTF_CgltfWrapper.h.
|
inline |
Definition at line 68 of file GLTF_CgltfWrapper.h.
|
inlinestatic |
Definition at line 193 of file GLTF_CgltfWrapper.h.
| GLTF_CgltfWrapper::GLTF_DEFINE_APPEND_FUNC | ( | appendAccessor | , |
| cgltf_accessor | , | ||
| myCgltfData-> | accessors, | ||
| myCgltfData-> | accessors_count | ||
| ) |
| GLTF_CgltfWrapper::GLTF_DEFINE_APPEND_FUNC | ( | appendAnimation | , |
| cgltf_animation | , | ||
| myCgltfData-> | animations, | ||
| myCgltfData-> | animations_count | ||
| ) |
| GLTF_CgltfWrapper::GLTF_DEFINE_APPEND_FUNC | ( | appendBuffer | , |
| cgltf_buffer | , | ||
| myCgltfData-> | buffers, | ||
| myCgltfData-> | buffers_count | ||
| ) |
| GLTF_CgltfWrapper::GLTF_DEFINE_APPEND_FUNC | ( | appendBufferView | , |
| cgltf_buffer_view | , | ||
| myCgltfData-> | buffer_views, | ||
| myCgltfData-> | buffer_views_count | ||
| ) |
| GLTF_CgltfWrapper::GLTF_DEFINE_APPEND_FUNC | ( | appendCamera | , |
| cgltf_camera | , | ||
| myCgltfData-> | cameras, | ||
| myCgltfData-> | cameras_count | ||
| ) |
| GLTF_CgltfWrapper::GLTF_DEFINE_APPEND_FUNC | ( | appendImage | , |
| cgltf_image | , | ||
| myCgltfData-> | images, | ||
| myCgltfData-> | images_count | ||
| ) |
| GLTF_CgltfWrapper::GLTF_DEFINE_APPEND_FUNC | ( | appendLight | , |
| cgltf_light | , | ||
| myCgltfData-> | lights, | ||
| myCgltfData-> | lights_count | ||
| ) |
| GLTF_CgltfWrapper::GLTF_DEFINE_APPEND_FUNC | ( | appendMaterial | , |
| cgltf_material | , | ||
| myCgltfData-> | materials, | ||
| myCgltfData-> | materials_count | ||
| ) |
| GLTF_CgltfWrapper::GLTF_DEFINE_APPEND_FUNC | ( | appendMesh | , |
| cgltf_mesh | , | ||
| myCgltfData-> | meshes, | ||
| myCgltfData-> | meshes_count | ||
| ) |
| GLTF_CgltfWrapper::GLTF_DEFINE_APPEND_FUNC | ( | appendNode | , |
| cgltf_node | , | ||
| myCgltfData-> | nodes, | ||
| myCgltfData-> | nodes_count | ||
| ) |
| GLTF_CgltfWrapper::GLTF_DEFINE_APPEND_FUNC | ( | appendTexture | , |
| cgltf_texture | , | ||
| myCgltfData-> | textures, | ||
| myCgltfData-> | textures_count | ||
| ) |
|
inline |
Definition at line 103 of file GLTF_CgltfWrapper.h.
|
inline |
Definition at line 117 of file GLTF_CgltfWrapper.h.
|
inline |
Definition at line 88 of file GLTF_CgltfWrapper.h.
Definition at line 83 of file GLTF_CgltfWrapper.h.
| cgltf_result GLTF_CgltfWrapper::loadBufferFile | ( | cgltf_size | buf_size, |
| const char * | buf_uri, | ||
| const char * | gltf_path, | ||
| void ** | data | ||
| ) |
|
inlinestatic |
Definition at line 188 of file GLTF_CgltfWrapper.h.
|
inline |
Definition at line 59 of file GLTF_CgltfWrapper.h.
|
inline |
Definition at line 180 of file GLTF_CgltfWrapper.h.
|
inlinestatic |
Definition at line 76 of file GLTF_CgltfWrapper.h.