- Main Page
- Classes
- Files
- Directories

- File List
- File Members

# 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