Xface Core Library: XEngine::ModelFileFactory Class Reference

XFace / XEngine / XMath

XEngine::ModelFileFactory Class Reference
[XEngine]

#include <ModelFileFactory.h>

List of all members.


Detailed Description

Author:
Koray Balci
Version:
1.0
Date:
Nov 2003
This class is used to keep track of which mesh files are currently loaded through MeshManager and in memory. It is a Monolithic design pattern impl where all members are static.
Todo:
I guess this is only necessary for XFaceEd, so we might consider moving this class there.


Static Public Member Functions

static const MeshInfogetMeshInfo (const std::string &meshName)
 returns the list of MeshInfo for the files already loaded.
static std::list< boost::shared_ptr<
Drawable > > 
loadModelFile (const std::string &filename, const std::string &path="./")
static MeshInfo unloadModelFile (const std::string &filename)
static const MeshInfoisFileLoaded (const std::string &filename)
static void unloadAllFiles ()

Member Function Documentation

const MeshInfo * XEngine::ModelFileFactory::isFileLoaded const std::string &  filename  )  [static]
 

Checks is the file is already loaded or not.

Returns:
0 pointer if it is not loaded, pointer to MeshInfo already loaded otherwise.

std::list< boost::shared_ptr< Drawable > > XEngine::ModelFileFactory::loadModelFile const std::string &  filename,
const std::string &  path = "./"
[static]
 

Load the mesh from here.

void XEngine::ModelFileFactory::unloadAllFiles  )  [static]
 

UnLoads all the mesh files from memory.

MeshInfo XEngine::ModelFileFactory::unloadModelFile const std::string &  filename  )  [static]
 

UnLoad a single mesh file from here. filenames should be unique regardless of the path they have. i.e. you cannot have a mesh file with the same file name located at different paths!


The documentation for this class was generated from the following files:
Generated on Mon Aug 28 15:39:26 2006 for Xface Core Library by  doxygen 1.4.6-NO