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

#include <GLTF_MaterialExport.h>

Public Member Functions

 GLTF_MaterialExport (GLTF_ExportRoot &root, GLTF_BaseErrorManager &error_manager, UT_String &base_path, bool glb)
 
 ~GLTF_MaterialExport ()=default
 
uint32 TranslatePrincipledShader (const OP_Context &context, const OP_Node *ps_node, const UT_Options &mat_overrides, const GLTF_TextureParms &tex_parms)
 
bool TranslateTexture (const UT_StringHolder &mat_path, const OP_Context &context, GLTF_NAMESPACE::GLTF_TextureInfo &tex_info, const GLTF_TextureParms &tex_parms, const UT_StringHolder *tex_name=nullptr, const OP_Node *ps_node=nullptr)
 
bool TranslateTexture (const UT_Array< GLTF_NAMESPACE::GLTF_ChannelMapping > &mappings, const OP_Context &context, GLTF_NAMESPACE::GLTF_TextureInfo &tex_info, const GLTF_TextureParms &tex_parms, const UT_StringHolder *tex_name=nullptr)
 
bool CopySourceTexture (const UT_StringHolder &source_path, GLTF_NAMESPACE::GLTF_TextureInfo &tex_info, const GLTF_TextureParms &tex_parms, const UT_StringHolder *tex_name=nullptr)
 
bool CopySourceTexture (const UT_Array< GLTF_NAMESPACE::GLTF_ChannelMapping > &mappings, GLTF_NAMESPACE::GLTF_TextureInfo &tex_info, const GLTF_TextureParms &tex_parms, const UT_StringHolder *tex_name=nullptr)
 
uint32 OutputTexture (const UT_String &output_path, const GLTF_TextureParms &parms, UT_Function< bool(std::ostream &, const IMG_Format *, const GLTF_NAMESPACE::GLTF_ImgExportParms &)> output_function, GLTF_NAMESPACE::GLTF_TextureInfo &tex_info, const OP_Context &context, const IMG_Format *format, const UT_StringHolder *tex_name=nullptr)
 
void GetNonCollidingName (const UT_String &s, UT_String &o)
 

Public Attributes

GLTF_ExportRootmyRoot
 
GLTF_BaseErrorManagermyErrorManager
 
UT_StringmyBasePath
 
bool myGlb
 

Detailed Description

Definition at line 51 of file GLTF_MaterialExport.h.

Constructor & Destructor Documentation

GLTF_NAMESPACE::GLTF_MaterialExport::GLTF_MaterialExport ( GLTF_ExportRoot root,
GLTF_BaseErrorManager error_manager,
UT_String base_path,
bool  glb 
)
GLTF_NAMESPACE::GLTF_MaterialExport::~GLTF_MaterialExport ( )
default

Member Function Documentation

bool GLTF_NAMESPACE::GLTF_MaterialExport::CopySourceTexture ( const UT_StringHolder source_path,
GLTF_NAMESPACE::GLTF_TextureInfo tex_info,
const GLTF_TextureParms tex_parms,
const UT_StringHolder tex_name = nullptr 
)
bool GLTF_NAMESPACE::GLTF_MaterialExport::CopySourceTexture ( const UT_Array< GLTF_NAMESPACE::GLTF_ChannelMapping > &  mappings,
GLTF_NAMESPACE::GLTF_TextureInfo tex_info,
const GLTF_TextureParms tex_parms,
const UT_StringHolder tex_name = nullptr 
)
void GLTF_NAMESPACE::GLTF_MaterialExport::GetNonCollidingName ( const UT_String s,
UT_String o 
)
uint32 GLTF_NAMESPACE::GLTF_MaterialExport::OutputTexture ( const UT_String output_path,
const GLTF_TextureParms parms,
UT_Function< bool(std::ostream &, const IMG_Format *, const GLTF_NAMESPACE::GLTF_ImgExportParms &)>  output_function,
GLTF_NAMESPACE::GLTF_TextureInfo tex_info,
const OP_Context context,
const IMG_Format format,
const UT_StringHolder tex_name = nullptr 
)
uint32 GLTF_NAMESPACE::GLTF_MaterialExport::TranslatePrincipledShader ( const OP_Context context,
const OP_Node ps_node,
const UT_Options mat_overrides,
const GLTF_TextureParms tex_parms 
)
bool GLTF_NAMESPACE::GLTF_MaterialExport::TranslateTexture ( const UT_StringHolder mat_path,
const OP_Context context,
GLTF_NAMESPACE::GLTF_TextureInfo tex_info,
const GLTF_TextureParms tex_parms,
const UT_StringHolder tex_name = nullptr,
const OP_Node ps_node = nullptr 
)
bool GLTF_NAMESPACE::GLTF_MaterialExport::TranslateTexture ( const UT_Array< GLTF_NAMESPACE::GLTF_ChannelMapping > &  mappings,
const OP_Context context,
GLTF_NAMESPACE::GLTF_TextureInfo tex_info,
const GLTF_TextureParms tex_parms,
const UT_StringHolder tex_name = nullptr 
)

Member Data Documentation

UT_String& GLTF_NAMESPACE::GLTF_MaterialExport::myBasePath

Definition at line 119 of file GLTF_MaterialExport.h.

GLTF_BaseErrorManager& GLTF_NAMESPACE::GLTF_MaterialExport::myErrorManager

Definition at line 118 of file GLTF_MaterialExport.h.

bool GLTF_NAMESPACE::GLTF_MaterialExport::myGlb

Definition at line 120 of file GLTF_MaterialExport.h.

GLTF_ExportRoot& GLTF_NAMESPACE::GLTF_MaterialExport::myRoot

Definition at line 117 of file GLTF_MaterialExport.h.


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