Pyrogenesis  13997
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Static Public Member Functions | Private Attributes | List of all members
CColladaManagerImpl Class Reference

Public Member Functions

 CColladaManagerImpl (const PIVFS &vfs)
 
 ~CColladaManagerImpl ()
 
Status ReloadChangedFile (const VfsPath &path)
 
bool Convert (const VfsPath &daeFilename, const VfsPath &pmdFilename, CColladaManager::FileType type)
 
bool TryLoadDLL ()
 
bool LoadSkeletonDefinitions ()
 
void PrepareCacheKey (MD5 &hash, u32 &version)
 Creates MD5 hash key from skeletons.xml info and COLLADA converter version, used to invalidate cached .pmd/psas. More...
 

Static Public Member Functions

static Status ReloadChangedFileCB (void *param, const VfsPath &path)
 

Private Attributes

DllLoader dll
 
void(* set_logger )(Collada::LogFn logger, void *cb_data)
 
int(* set_skeleton_definitions )(const char *xml, int length)
 
int(* convert_dae_to_pmd )(const char *dae, Collada::OutputFn pmd_writer, void *cb_data)
 
int(* convert_dae_to_psa )(const char *dae, Collada::OutputFn psa_writer, void *cb_data)
 
PIVFS m_VFS
 
bool m_skeletonHashInvalidated
 
std::vector< u64m_skeletonHashes
 

Detailed Description

Definition at line 59 of file ColladaManager.cpp.

Constructor & Destructor Documentation

CColladaManagerImpl::CColladaManagerImpl ( const PIVFS vfs)
inline

Definition at line 69 of file ColladaManager.cpp.

CColladaManagerImpl::~CColladaManagerImpl ( )
inline

Definition at line 76 of file ColladaManager.cpp.

Member Function Documentation

bool CColladaManagerImpl::Convert ( const VfsPath daeFilename,
const VfsPath pmdFilename,
CColladaManager::FileType  type 
)
inline

Definition at line 128 of file ColladaManager.cpp.

bool CColladaManagerImpl::LoadSkeletonDefinitions ( )
inline

Definition at line 212 of file ColladaManager.cpp.

void CColladaManagerImpl::PrepareCacheKey ( MD5 hash,
u32 version 
)
inline

Creates MD5 hash key from skeletons.xml info and COLLADA converter version, used to invalidate cached .pmd/psas.

Parameters
[out]hashresulting MD5 hash
[out]versionversion passed to CCacheLoader, used if code change should force cache invalidation

Definition at line 259 of file ColladaManager.cpp.

Status CColladaManagerImpl::ReloadChangedFile ( const VfsPath path)
inline

Definition at line 83 of file ColladaManager.cpp.

static Status CColladaManagerImpl::ReloadChangedFileCB ( void *  param,
const VfsPath path 
)
inlinestatic

Definition at line 123 of file ColladaManager.cpp.

bool CColladaManagerImpl::TryLoadDLL ( )
inline

Definition at line 188 of file ColladaManager.cpp.

Member Data Documentation

int(* CColladaManagerImpl::convert_dae_to_pmd)(const char *dae, Collada::OutputFn pmd_writer, void *cb_data)
private

Definition at line 65 of file ColladaManager.cpp.

int(* CColladaManagerImpl::convert_dae_to_psa)(const char *dae, Collada::OutputFn psa_writer, void *cb_data)
private

Definition at line 66 of file ColladaManager.cpp.

DllLoader CColladaManagerImpl::dll
private

Definition at line 61 of file ColladaManager.cpp.

std::vector<u64> CColladaManagerImpl::m_skeletonHashes
private

Definition at line 314 of file ColladaManager.cpp.

bool CColladaManagerImpl::m_skeletonHashInvalidated
private

Definition at line 313 of file ColladaManager.cpp.

PIVFS CColladaManagerImpl::m_VFS
private

Definition at line 312 of file ColladaManager.cpp.

void(* CColladaManagerImpl::set_logger)(Collada::LogFn logger, void *cb_data)
private

Definition at line 63 of file ColladaManager.cpp.

int(* CColladaManagerImpl::set_skeleton_definitions)(const char *xml, int length)
private

Definition at line 64 of file ColladaManager.cpp.


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