1 #ifndef __GLTF_CgltfUtils_h__
2 #define __GLTF_CgltfUtils_h__
21 namespace GLTF_CgltfUtils
51 const char* suffix =
"");
112 const char* gltf_filepath,
118 gltf_mat[0], gltf_mat[1], gltf_mat[2], gltf_mat[3],
119 gltf_mat[4], gltf_mat[5], gltf_mat[6], gltf_mat[7],
120 gltf_mat[8], gltf_mat[9], gltf_mat[10], gltf_mat[11],
121 gltf_mat[12], gltf_mat[13], gltf_mat[14], gltf_mat[15]);
180 #endif // __GLTF_CgltfUtils_h__
UT_StringHolder getImageFilePath(const char *gltf_filepath, const cgltf_image &image)
bool hasOcclusionTexture(const cgltf_material &mat)
GLTFZ_API UT_Matrix4F getAnimatedTransformWorld(const GLTF_SceneData &scene, const GLTF_SceneData::Node &node, const float time, const GLTF_AnimationData &anim_data)
bool hasNormalTexture(const cgltf_material &mat)
bool isDefault(const cgltf_texture_view &tv)
UT_StringHolder buildNodePath(const cgltf_data &data, const cgltf_node &node)
GT_API const UT_StringHolder time
UT_StringArray getUnsupportedImporterExtensions(const GLTF_Reader &reader, const cgltf_size extensions_count, char **extensions)
constexpr SYS_FORCE_INLINE T & z() noexcept
GLenum GLenum GLsizei void * image
UT_StringHolder getHoudiniAttributeName(cgltf_attribute_type type)
UT_StringHolder getSkinName(const cgltf_data &data, const cgltf_skin &skin)
UT_StringHolder getAnimationName(const cgltf_data &data, const cgltf_animation &anim)
GLTFZ_API void setNodeName(const GLTF_Index node_id, GLTF_Writer &writer, const char *name)
UT_StringHolder getCgltfResultMessage(const cgltf_result &res)
UT_StringHolder getNodeName(const cgltf_data &data, const cgltf_node &node)
AccessorMinMax(const UT_Vector3F &initial)
GLTFZ_API void setMeshName(const GLTF_Index mesh_id, GLTF_Writer &writer, const char *name)
GLint GLint GLsizei GLint GLenum GLenum type
void checkAndUpdate(const UT_Vector3F &vec)
GLTFZ_API UT_Matrix4F getAnimatedTransformLocal(const GLTF_SceneData::Node &node, const float time, const GLTF_AnimationData &anim_data)
UT_StringHolder getCameraName(const cgltf_data &data, const cgltf_camera &camera)
UT_Matrix4T< fpreal32 > UT_Matrix4F
UT_Matrix4F getMatrix4F(cgltf_float *gltf_mat)
GLuint const GLchar * name
UT_StringHolder getMaterialName(const cgltf_data &data, const cgltf_material &mat)
cgltf_image * getTextureImage(const cgltf_texture_view &tv)
UT_StringHolder getGltfAttributeName(const GLTF_AttributeType type, const char *suffix="")
bool hasSpecularColorTexture(const cgltf_material &mat)
bool hasEmissiveTexture(const cgltf_material &mat)
bool hasDiffuseTexture(const cgltf_material &mat)
UT_StringHolder getSceneName(const cgltf_data &data, const cgltf_scene &scene)
UT_StringHolder getMeshName(const cgltf_data &data, const cgltf_mesh &mesh)
void setNodeTransform(OBJ_Node *object, const GLTF_Index node_id, GLTF_Writer &writer, fpreal time)
cgltf_primitive * getPrimitive(const cgltf_data &data, const GLTF_Index mesh_id, const GLTF_Index prim_id)
void addChildNodeToNode(GLTF_Writer &writer, cgltf_data &data, GLTF_Index parent_id, GLTF_Index child_id)
void getAnimationNames(const cgltf_data &data, UT_StringArray &names)
GLTFZ_API GLTF_Index findRootNode(const cgltf_data &data, const GLTF_Index node_id)
GLTF_TextureTransform getTextureTransform(const cgltf_texture_view &tv)
bool hasMetallicRoughnessTexture(const cgltf_material &mat)
constexpr SYS_FORCE_INLINE T & y() noexcept
bool hasTransmissionTexture(const cgltf_material &mat)
ImageBuf OIIO_API channels(const ImageBuf &src, int nchannels, cspan< int > channelorder, cspan< float > channelvalues={}, cspan< std::string > newchannelnames={}, bool shuffle_channel_names=false, int nthreads=0)
constexpr SYS_FORCE_INLINE T & x() noexcept