Pyrogenesis HEAD
Pyrogenesis, a RTS Engine
CColladaManagerImpl Class Reference
Collaboration diagram for CColladaManagerImpl:

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
 

Constructor & Destructor Documentation

◆ CColladaManagerImpl()

CColladaManagerImpl::CColladaManagerImpl ( const PIVFS vfs)
inline

◆ ~CColladaManagerImpl()

CColladaManagerImpl::~CColladaManagerImpl ( )
inline

Member Function Documentation

◆ Convert()

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

◆ LoadSkeletonDefinitions()

bool CColladaManagerImpl::LoadSkeletonDefinitions ( )
inline

◆ PrepareCacheKey()

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

◆ ReloadChangedFile()

Status CColladaManagerImpl::ReloadChangedFile ( const VfsPath path)
inline

◆ ReloadChangedFileCB()

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

◆ TryLoadDLL()

bool CColladaManagerImpl::TryLoadDLL ( )
inline

Member Data Documentation

◆ convert_dae_to_pmd

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

◆ convert_dae_to_psa

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

◆ dll

DllLoader CColladaManagerImpl::dll
private

◆ m_skeletonHashes

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

◆ m_skeletonHashInvalidated

bool CColladaManagerImpl::m_skeletonHashInvalidated
private

◆ m_VFS

PIVFS CColladaManagerImpl::m_VFS
private

◆ set_logger

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

◆ set_skeleton_definitions

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

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