Starshatter_Open
Open source Starshatter engine
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
L3DS Class Reference

#include <l3ds.h>

Inheritance diagram for L3DS:
LImporter LImporter

List of all members.

Public Member Functions

 L3DS ()
 L3DS (const char *filename)
virtual ~L3DS ()
virtual bool LoadFile (const char *filename)
 L3DS ()
 L3DS (const char *filename)
virtual ~L3DS ()
virtual bool LoadFile (const char *filename)
- Public Member Functions inherited from LImporter
 LImporter ()
virtual ~LImporter ()
uint GetMeshCount ()
uint GetLightCount ()
uint GetMaterialCount ()
LMeshGetMesh (uint index)
LLightGetLight (uint index)
LMaterialGetMaterial (uint index)
LMaterialFindMaterial (const std::string &name)
LMeshFindMesh (const std::string &name)
LLightFindLight (const std::string &name)
void SetOptimizationLevel (LOptimizationLevel value)
LOptimizationLevel GetOptimizationLevel ()
 LImporter ()
virtual ~LImporter ()
DWORD GetMeshCount ()
DWORD GetLightCount ()
DWORD GetMaterialCount ()
LMeshGetMesh (DWORD index)
LLightGetLight (DWORD index)
LMaterialGetMaterial (DWORD index)
LMaterialFindMaterial (const Text &name)
LMeshFindMesh (const Text &name)
LLightFindLight (const Text &name)
void SetOptimizationLevel (LOptimizationLevel value)
LOptimizationLevel GetOptimizationLevel ()

Protected Member Functions

short ReadShort ()
int ReadInt ()
char ReadChar ()
float ReadFloat ()
byte ReadByte ()
int ReadASCIIZ (char *buf, int max_count)
void Seek (int offset, int origin)
uint Pos ()
LChunk ReadChunk ()
bool FindChunk (LChunk &target, const LChunk &parent)
void SkipChunk (const LChunk &chunk)
void GotoChunk (const LChunk &chunk)
LColor3 ReadColor (const LChunk &chunk)
float ReadPercentage (const LChunk &chunk)
bool Read3DS ()
void ReadLight (const LChunk &parent)
void ReadMesh (const LChunk &parent)
void ReadFaceList (const LChunk &chunk, LMesh &mesh)
void ReadMaterial (const LChunk &parent)
void ReadMap (const LChunk &chunk, LMap &map)
void ReadKeyframeData (const LChunk &parent)
long ReadKeyheader ()
short ReadShort ()
int ReadInt ()
char ReadChar ()
float ReadFloat ()
byte ReadByte ()
int ReadASCIIZ (char *buf, int max_count)
void Seek (int offset, int origin)
DWORD Pos ()
LChunk ReadChunk ()
bool FindChunk (LChunk &target, const LChunk &parent)
void SkipChunk (const LChunk &chunk)
void GotoChunk (const LChunk &chunk)
ColorValue ReadColor (const LChunk &chunk)
float ReadPercentage (const LChunk &chunk)
bool Read3DS ()
void ReadLight (const LChunk &parent)
void ReadMesh (const LChunk &parent)
void ReadFaceList (const LChunk &chunk, LMesh &mesh)
void ReadMaterial (const LChunk &parent)
void ReadMap (const LChunk &chunk, TextureMap &map)
void ReadKeyframeData (const LChunk &parent)
long ReadKeyheader ()
- Protected Member Functions inherited from LImporter
virtual void Clear ()
virtual void Clear ()

Protected Attributes

char m_objName [100]
bool m_eof
unsigned char * m_buffer
uint m_bufferSize
uint m_pos
char objName [100]
bool eof
unsigned char * buffer
DWORD bufferSize
DWORD pos
- Protected Attributes inherited from LImporter
std::vector< LLightm_lights
std::vector< LMeshm_meshes
std::vector< LMaterialm_materials
LOptimizationLevel m_optLevel
List< LLightlights
List< LMeshmeshes
List< LMaterialmaterials
LOptimizationLevel optLevel

Detailed Description

Definition at line 384 of file l3ds.h.


Constructor & Destructor Documentation

L3DS::L3DS ( )

Definition at line 1025 of file l3ds.cpp.

L3DS::L3DS ( const char *  filename)

Definition at line 1034 of file l3ds.cpp.

L3DS::~L3DS ( )
virtual

Definition at line 1044 of file l3ds.cpp.

L3DS::L3DS ( )
L3DS::L3DS ( const char *  filename)
virtual L3DS::~L3DS ( )
virtual

Member Function Documentation

bool L3DS::FindChunk ( LChunk target,
const LChunk parent 
)
protected
bool L3DS::FindChunk ( LChunk target,
const LChunk parent 
)
protected

Definition at line 1197 of file l3ds.cpp.

void L3DS::GotoChunk ( const LChunk chunk)
protected
void L3DS::GotoChunk ( const LChunk chunk)
protected

Definition at line 1224 of file l3ds.cpp.

virtual bool L3DS::LoadFile ( const char *  filename)
virtual

Implements LImporter.

bool L3DS::LoadFile ( const char *  filename)
virtual

Implements LImporter.

Definition at line 1050 of file l3ds.cpp.

DWORD L3DS::Pos ( )
protected
uint L3DS::Pos ( )
protected

Definition at line 1182 of file l3ds.cpp.

bool L3DS::Read3DS ( )
protected
bool L3DS::Read3DS ( )
protected

Definition at line 1275 of file l3ds.cpp.

int L3DS::ReadASCIIZ ( char *  buf,
int  max_count 
)
protected
int L3DS::ReadASCIIZ ( char *  buf,
int  max_count 
)
protected

Definition at line 1148 of file l3ds.cpp.

byte L3DS::ReadByte ( )
protected
byte L3DS::ReadByte ( )
protected

Definition at line 1136 of file l3ds.cpp.

char L3DS::ReadChar ( )
protected
char L3DS::ReadChar ( )
protected

Definition at line 1111 of file l3ds.cpp.

LChunk L3DS::ReadChunk ( )
protected
LChunk L3DS::ReadChunk ( )
protected

Definition at line 1187 of file l3ds.cpp.

ColorValue L3DS::ReadColor ( const LChunk chunk)
protected
LColor3 L3DS::ReadColor ( const LChunk chunk)
protected

Definition at line 1229 of file l3ds.cpp.

void L3DS::ReadFaceList ( const LChunk chunk,
LMesh mesh 
)
protected
void L3DS::ReadFaceList ( const LChunk chunk,
LMesh mesh 
)
protected

Definition at line 1455 of file l3ds.cpp.

float L3DS::ReadFloat ( )
protected
float L3DS::ReadFloat ( )
protected

Definition at line 1123 of file l3ds.cpp.

int L3DS::ReadInt ( )
protected
int L3DS::ReadInt ( )
protected

Definition at line 1098 of file l3ds.cpp.

void L3DS::ReadKeyframeData ( const LChunk parent)
protected
void L3DS::ReadKeyframeData ( const LChunk parent)
protected

Definition at line 1652 of file l3ds.cpp.

long L3DS::ReadKeyheader ( )
protected
long L3DS::ReadKeyheader ( )
protected

Definition at line 1769 of file l3ds.cpp.

void L3DS::ReadLight ( const LChunk parent)
protected
void L3DS::ReadLight ( const LChunk parent)
protected

Definition at line 1342 of file l3ds.cpp.

void L3DS::ReadMap ( const LChunk chunk,
TextureMap map 
)
protected
void L3DS::ReadMap ( const LChunk chunk,
LMap map 
)
protected

Definition at line 1614 of file l3ds.cpp.

void L3DS::ReadMaterial ( const LChunk parent)
protected
void L3DS::ReadMaterial ( const LChunk parent)
protected

Definition at line 1512 of file l3ds.cpp.

void L3DS::ReadMesh ( const LChunk parent)
protected
void L3DS::ReadMesh ( const LChunk parent)
protected

Definition at line 1390 of file l3ds.cpp.

float L3DS::ReadPercentage ( const LChunk chunk)
protected
float L3DS::ReadPercentage ( const LChunk chunk)
protected

Definition at line 1261 of file l3ds.cpp.

short L3DS::ReadShort ( )
protected
short L3DS::ReadShort ( )
protected

Definition at line 1085 of file l3ds.cpp.

void L3DS::Seek ( int  offset,
int  origin 
)
protected
void L3DS::Seek ( int  offset,
int  origin 
)
protected

Definition at line 1169 of file l3ds.cpp.

void L3DS::SkipChunk ( const LChunk chunk)
protected
void L3DS::SkipChunk ( const LChunk chunk)
protected

Definition at line 1219 of file l3ds.cpp.


Member Data Documentation

unsigned char* L3DS::buffer
protected

Definition at line 273 of file M3DS.h.

DWORD L3DS::bufferSize
protected

Definition at line 275 of file M3DS.h.

bool L3DS::eof
protected

Definition at line 271 of file M3DS.h.

unsigned char* L3DS::m_buffer
protected

Definition at line 401 of file l3ds.h.

uint L3DS::m_bufferSize
protected

Definition at line 403 of file l3ds.h.

bool L3DS::m_eof
protected

Definition at line 399 of file l3ds.h.

char L3DS::m_objName[100]
protected

Definition at line 397 of file l3ds.h.

uint L3DS::m_pos
protected

Definition at line 405 of file l3ds.h.

char L3DS::objName[100]
protected

Definition at line 269 of file M3DS.h.

DWORD L3DS::pos
protected

Definition at line 277 of file M3DS.h.


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