Pyrogenesis HEAD
Pyrogenesis, a RTS Engine
CColladaManager Class Reference

#include <ColladaManager.h>

Collaboration diagram for CColladaManager:

Public Types

enum  FileType { PMD , PSA }
 

Public Member Functions

 CColladaManager (const PIVFS &vfs)
 
 ~CColladaManager ()
 
VfsPath GetLoadablePath (const VfsPath &pathnameNoExtension, FileType type)
 Returns the VFS path to a PMD/PSA file for the given source file. More...
 
bool GenerateCachedFile (const VfsPath &sourcePath, FileType type, VfsPath &archiveCachePath)
 Converts DAE to archive cached .pmd/psa and outputs the resulting path (used by archive builder) More...
 

Private Member Functions

 NONCOPYABLE (CColladaManager)
 

Private Attributes

CColladaManagerImplm
 
PIVFS m_VFS
 

Member Enumeration Documentation

◆ FileType

Enumerator
PMD 
PSA 

Constructor & Destructor Documentation

◆ CColladaManager()

CColladaManager::CColladaManager ( const PIVFS vfs)

◆ ~CColladaManager()

CColladaManager::~CColladaManager ( )

Member Function Documentation

◆ GenerateCachedFile()

bool CColladaManager::GenerateCachedFile ( const VfsPath sourcePath,
FileType  type,
VfsPath archiveCachePath 
)

Converts DAE to archive cached .pmd/psa and outputs the resulting path (used by archive builder)

Parameters
[in]sourcePathpath of the .dae to load
[in]typeFileType, .pmd or .psa
[out]archiveCachePathoutput path of the cached file
Returns
true if COLLADA converter completed successfully; or false if it failed

◆ GetLoadablePath()

VfsPath CColladaManager::GetLoadablePath ( const VfsPath pathnameNoExtension,
FileType  type 
)

Returns the VFS path to a PMD/PSA file for the given source file.

Performs a (cached) conversion from COLLADA if necessary.

Parameters
pathnameNoExtensionpath and name, minus extension, of file to load. One of either "sourceName.pmd" or "sourceName.dae" should exist.
typeFileType, .pmd or .psa
Returns
full VFS path (including extension) of file to load; or empty string if there was a problem and it could not be loaded. Doesn't knowingly return an invalid path.

◆ NONCOPYABLE()

CColladaManager::NONCOPYABLE ( CColladaManager  )
private

Member Data Documentation

◆ m

CColladaManagerImpl* CColladaManager::m
private

◆ m_VFS

PIVFS CColladaManager::m_VFS
private

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