OpenRaider  0.1.4-dev
Open Source Tomb Raider Game Engine implementation
Public Member Functions | Protected Member Functions | List of all members
LoaderTR2 Class Reference

#include <LoaderTR2.h>

Inheritance diagram for LoaderTR2:
[legend]
Collaboration diagram for LoaderTR2:
[legend]

Public Member Functions

virtual int load (std::string f)
 

Protected Member Functions

virtual void loadPalette ()
 
virtual void loadTextures ()
 
virtual void loadRoomLights ()
 
virtual void loadRoomStaticMeshes (std::vector< StaticModel * > &staticModels)
 
virtual void loadRoomDataEnd (int16_t &alternateRoom, unsigned int &roomFlags)
 
virtual void loadRoomVertex (RoomVertexTR2 &vert)
 
virtual void loadRoomMesh (std::vector< IndexedRectangle > &rectangles, std::vector< IndexedRectangle > &triangles, uint16_t &numRectangles, uint16_t &numTriangles)
 
virtual void loadRooms ()
 
virtual void loadFloorData ()
 
virtual void loadMeshes ()
 
virtual void loadMoveables ()
 
virtual void loadStaticMeshes ()
 
virtual void loadTextiles ()
 
virtual void loadSprites ()
 
virtual void loadCameras ()
 
virtual void loadSoundSources ()
 
virtual void loadBoxesOverlapsZones ()
 
virtual void loadAnimatedTextures ()
 
virtual void loadItems ()
 
virtual void loadCinematicFrames ()
 
virtual void loadDemoData ()
 
virtual void loadSoundMap ()
 
virtual void loadSoundDetails ()
 
virtual void loadSampleIndices ()
 
virtual void loadExternalSoundFile (std::string f)
 
virtual int loadSoundFiles (BinaryReader &sfx, unsigned int count=0)
 
virtual int getPaletteIndex (uint16_t index)
 
virtual void loadAngleSet (BoneFrame *bf, BinaryReader &frame, uint16_t numMeshes, uint16_t startingMesh, uint32_t meshTree, uint32_t numMeshTrees, std::vector< int32_t > meshTrees)
 
virtual BoneFrameloadFrame (BinaryReader &frame, uint16_t numMeshes, uint16_t startingMesh, uint32_t meshTree, uint32_t numMeshTrees, std::vector< int32_t > meshTrees)
 

Additional Inherited Members

- Public Types inherited from Loader
enum  LoaderVersion {
  TR_UNKNOWN = 0, TR_1 = 1, TR_2 = 2, TR_3 = 3,
  TR_4 = 4, TR_5 = 5
}
 
- Static Public Member Functions inherited from Loader
static LoaderVersion checkFile (std::string f)
 
static std::unique_ptr< LoadercreateLoader (std::string f)
 
- Protected Attributes inherited from Loader
BinaryFile file
 

Detailed Description

Definition at line 20 of file LoaderTR2.h.

Member Function Documentation

int LoaderTR2::load ( std::string  f)
virtual

Implements Loader.

Reimplemented in LoaderTR1, and LoaderTR3.

Definition at line 24 of file LoaderTR2.cpp.

void LoaderTR2::loadPalette ( )
protectedvirtual

Reimplemented in LoaderTR1.

Definition at line 66 of file LoaderTR2.cpp.

void LoaderTR2::loadTextures ( )
protectedvirtual
FIXME:
properly handle error when texture could not be loaded!

Reimplemented in LoaderTR1.

Definition at line 81 of file LoaderTR2.cpp.

void LoaderTR2::loadRoomLights ( )
protectedvirtual

Reimplemented in LoaderTR1, and LoaderTR3.

Definition at line 191 of file LoaderTR2.cpp.

void LoaderTR2::loadRoomStaticMeshes ( std::vector< StaticModel * > &  staticModels)
protectedvirtual
FIXME:
Use static mesh lighting information

Reimplemented in LoaderTR1.

Definition at line 213 of file LoaderTR2.cpp.

void LoaderTR2::loadRoomDataEnd ( int16_t &  alternateRoom,
unsigned int &  roomFlags 
)
protectedvirtual

Reimplemented in LoaderTR3.

Definition at line 239 of file LoaderTR2.cpp.

void LoaderTR2::loadRoomVertex ( RoomVertexTR2 vert)
protectedvirtual

Reimplemented in LoaderTR1.

Definition at line 249 of file LoaderTR2.cpp.

void LoaderTR2::loadRoomMesh ( std::vector< IndexedRectangle > &  rectangles,
std::vector< IndexedRectangle > &  triangles,
uint16_t &  numRectangles,
uint16_t &  numTriangles 
)
protectedvirtual

Reimplemented in LoaderTR3.

Definition at line 258 of file LoaderTR2.cpp.

void LoaderTR2::loadRooms ( )
protectedvirtual

Definition at line 289 of file LoaderTR2.cpp.

void LoaderTR2::loadFloorData ( )
protectedvirtual

Definition at line 465 of file LoaderTR2.cpp.

void LoaderTR2::loadMeshes ( )
protectedvirtual

Definition at line 527 of file LoaderTR2.cpp.

void LoaderTR2::loadMoveables ( )
protectedvirtual

Definition at line 785 of file LoaderTR2.cpp.

void LoaderTR2::loadStaticMeshes ( )
protectedvirtual

Definition at line 648 of file LoaderTR2.cpp.

void LoaderTR2::loadTextiles ( )
protectedvirtual

Definition at line 108 of file LoaderTR2.cpp.

void LoaderTR2::loadSprites ( )
protectedvirtual

Definition at line 480 of file LoaderTR2.cpp.

void LoaderTR2::loadCameras ( )
protectedvirtual

Definition at line 1209 of file LoaderTR2.cpp.

void LoaderTR2::loadSoundSources ( )
protectedvirtual

Definition at line 1084 of file LoaderTR2.cpp.

void LoaderTR2::loadBoxesOverlapsZones ( )
protectedvirtual

Reimplemented in LoaderTR1.

Definition at line 1021 of file LoaderTR2.cpp.

void LoaderTR2::loadAnimatedTextures ( )
protectedvirtual

Definition at line 155 of file LoaderTR2.cpp.

void LoaderTR2::loadItems ( )
protectedvirtual

Reimplemented in LoaderTR1.

Definition at line 976 of file LoaderTR2.cpp.

void LoaderTR2::loadCinematicFrames ( )
protectedvirtual

Definition at line 1226 of file LoaderTR2.cpp.

void LoaderTR2::loadDemoData ( )
protectedvirtual

Definition at line 1246 of file LoaderTR2.cpp.

void LoaderTR2::loadSoundMap ( )
protectedvirtual

Reimplemented in LoaderTR1.

Definition at line 1107 of file LoaderTR2.cpp.

void LoaderTR2::loadSoundDetails ( )
protectedvirtual

Definition at line 1113 of file LoaderTR2.cpp.

void LoaderTR2::loadSampleIndices ( )
protectedvirtual

Definition at line 1136 of file LoaderTR2.cpp.

void LoaderTR2::loadExternalSoundFile ( std::string  f)
protectedvirtual

Definition at line 1148 of file LoaderTR2.cpp.

int LoaderTR2::loadSoundFiles ( BinaryReader sfx,
unsigned int  count = 0 
)
protectedvirtual

Definition at line 1173 of file LoaderTR2.cpp.

int LoaderTR2::getPaletteIndex ( uint16_t  index)
protectedvirtual

Reimplemented in LoaderTR1.

Definition at line 523 of file LoaderTR2.cpp.

void LoaderTR2::loadAngleSet ( BoneFrame bf,
BinaryReader frame,
uint16_t  numMeshes,
uint16_t  startingMesh,
uint32_t  meshTree,
uint32_t  numMeshTrees,
std::vector< int32_t >  meshTrees 
)
protectedvirtual

Reimplemented in LoaderTR1.

Definition at line 719 of file LoaderTR2.cpp.

BoneFrame * LoaderTR2::loadFrame ( BinaryReader frame,
uint16_t  numMeshes,
uint16_t  startingMesh,
uint32_t  meshTree,
uint32_t  numMeshTrees,
std::vector< int32_t >  meshTrees 
)
protectedvirtual

Definition at line 764 of file LoaderTR2.cpp.


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