CMeshLoader.h File Reference

#include "CMatrix3d.h"
#include "CVector3d.h"
#include "CVertex.h"
#include "CTriangle.h"
#include "CMesh.h"
#include "CMaterial.h"
#include "CTexture2D.h"
#include "CWorld.h"
#include "CLight.h"
#include <string>
#include "CFileLoaderOBJ.h"
#include "CFileLoader3DS.h"

Functions

bool cLoadMeshFromFile (cMesh *iMesh, const string &iFileName)
 Global function to load a file into a mesh (CHAI currently supports .3ds and .obj files).

Detailed Description


Function Documentation

bool cLoadMeshFromFile ( cMesh iMesh,
const string &  iFileName 
)

Global function to load a file into a mesh (CHAI currently supports .3ds and .obj files).

Global function to load a file into a mesh (CHAI currently supports .3ds and .obj files). Returns true if the file is loaded successfully.

The file type is determined based on the file extension supplied by the caller.

Parameters:
iMesh The mesh into which we should write the loaded data
iFileName The filename from which we should load the mesh
Returns:
true if the file is loaded successfully, false for an error


Generated on Mon Jun 11 09:41:46 2007 for CHAI 3D by  doxygen 1.5.2