le3d - LightEngine 3D
A straightforward C++ 3D software engine for real-time graphics
Public Member Functions | List of all members
LeObjFile Class Reference

Load 3D meshes in Wavefront object format. More...

#include <objfile.h>

Public Member Functions

 LeObjFile (const char *filename)
 
 ~LeObjFile ()
 
int getNoMeshes ()
 Get the number of meshes in the file. More...
 
const char * getMeshName (int index)
 Get the name of the mesh of the given index. More...
 
LeMeshload (int index)
 Load the mesh of the given index from the file. More...
 
void save (const LeMesh *mesh)
 Load the mesh of the given index from the file. More...
 

Detailed Description

Load 3D meshes in Wavefront object format.

Constructor & Destructor Documentation

LeObjFile::LeObjFile ( const char *  filename)
LeObjFile::~LeObjFile ( )

Member Function Documentation

const char * LeObjFile::getMeshName ( int  index)

Get the name of the mesh of the given index.

Returns
name of the mesh, NULL else (error)
int LeObjFile::getNoMeshes ( )

Get the number of meshes in the file.

Returns
number of meshes
LeMesh * LeObjFile::load ( int  index)

Load the mesh of the given index from the file.

Returns
pointer to a new loaded mesh, else NULL (error)
void LeObjFile::save ( const LeMesh mesh)

Load the mesh of the given index from the file.

Returns
pointer to a new loaded mesh, else NULL (error)

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