Keos::CMD2Loader Class Reference

MD2 Mesh loader. More...

#include <KeosMD2Loader.h>

Inheritance diagram for Keos::CMD2Loader:

Inheritance graph
[legend]
List of all members.

Public Member Functions

virtual CMeshLoadFromFile (const String &strFilename)
 Load a mesh from a file.

Classes

struct  TFrame
struct  THeader
 MD2 Header.
struct  TPoint
 Struct for the vertices that are read in for the current frame.
struct  TTexCoord
 This stores UV coordinates.
struct  TTexture
struct  TTriangle
 This stores the indices into the vertex and texture coordinate arrays.

Detailed Description

MD2 Mesh loader.

Definition at line 33 of file KeosMD2Loader.h.


Member Function Documentation

CMesh * Keos::CMD2Loader::LoadFromFile ( const String strFilename  )  [virtual]

Load a mesh from a file.

Parameters:
strFilename Name of the file to be loaded.
Returns:
Pointer on the created model.

Reimplemented from Keos::ILoader< T >.

Definition at line 33 of file KeosMD2Loader.cpp.

References Keos::CMesh::AddMaterial(), Keos::CMesh::AddMeshGeom(), Keos::CMaterial::CreateTexture(), int(), LOADINGFAILED_EXCEPT, Keos::ILogger::Log(), Renderer, and Keos::CColor::White.


The documentation for this class was generated from the following files:
Generated on Fri Mar 9 14:29:25 2007 for Keos by  doxygen 1.5.1-p1