![]() |
VR-Forces 4.8 Class Documentation
|

Classes | |
| class | TileFile |
| class | TileFileEntry |
| Used to keep track of which tiles are in which file. More... | |
Public Types | |
| enum | TileMode { TileLocal, TileExternal, TileExternalSaved } |
| Tiles can be stored as individual files (External) or grouped together (Local) More... | |
Public Member Functions | |
| trpgwArchive (char *baseDir, char *name, trpg2dPoint &ll, trpg2dPoint &ur, int majorVer=TRPG_VERSION_MAJOR, int minorVer=TRPG_VERSION_MINOR) | |
| real constructor work done in Init(...) now for quasi-virtual ctor action. More... | |
| virtual void | Init (char *baseDir, char *name, trpg2dPoint &ll, trpg2dPoint &ur, int majorVer=TRPG_VERSION_MAJOR, int minorVer=TRPG_VERSION_MINOR) |
| trpgwArchive (trpgEndian ness=LittleEndian, TileMode tileMode=TileLocal, int majorVer=TRPG_VERSION_MAJOR, int minorVer=TRPG_VERSION_MINOR) | |
| Start an archive from scratch. More... | |
| virtual void | Init (trpgEndian ness=LittleEndian, TileMode tileMode=TileLocal, int majorVer=TRPG_VERSION_MAJOR, int minorVer=TRPG_VERSION_MINOR) |
| trpgwArchive (int) | |
| dummy constructor, does nothing so subclasses can have more control More... | |
| virtual | ~trpgwArchive (void) |
| virtual void | SetMaxTileFileLength (int len) |
| Set the maximum length for a tile file (if using them) This is only a suggestion for when to stop appending. More... | |
| virtual bool | SetHeader (const trpgHeader &) |
| Set functions. Have to fill all these out before writing. More... | |
| virtual bool | SetMaterialTable (const trpgMatTable &) |
| virtual bool | SetTextureTable (const trpgTexTable &) |
| virtual bool | SetModelTable (const trpgModelTable &) |
| virtual bool | SetLightTable (const trpgLightTable &) |
| virtual bool | SetRangeTable (const trpgRangeTable &) |
| virtual bool | SetLabelPropertyTable (const trpgLabelPropertyTable &) |
| virtual bool | SetSupportStyleTable (const trpgSupportStyleTable &) |
| virtual bool | SetTextStyleTable (const trpgTextStyleTable &) |
| virtual trpgHeader * | GetHeader () |
| Get functions. If we're doing a regenerate we need to get at these. More... | |
| virtual trpgMatTable * | GetMatTable () |
| virtual trpgTexTable * | GetTextureTable () |
| virtual trpgModelTable * | GetModelTable () |
| virtual trpgLightTable * | GetLightTable () |
| virtual trpgRangeTable * | GetRangeTable () |
| virtual trpgLabelPropertyTable * | GetLabelPropertyTable () |
| virtual trpgTextStyleTable * | GetTextStyleTable () |
| virtual trpgSupportStyleTable * | GetSupportStyleTable () |
| virtual bool | IncrementTileFile (void) |
| virtual bool | DesignateTileFile (int) |
| virtual bool | OpenFile (const char *, const char *) |
| Write functions. More... | |
| virtual void | CloseFile (void) |
| virtual bool | WriteHeader (void) |
| virtual bool | CheckpointHeader (void) |
| virtual bool | WriteTile (unsigned int, unsigned int, unsigned int, float zmin, float zmax, const trpgMemWriteBuffer *, const trpgMemWriteBuffer *, int32 &fileId, int32 &fileOffset) |
| bool | isValid (void) const |
| virtual bool WriteModel(unsigned int,trpgMemWriteBuffer &); More... | |
| const char * | getErrMess () const |
| char * | getDir (void) |
| virtual trpgwImageHelper * | GetNewWImageHelper (trpgEndian ness, char *dir, trpgTexTable &) |
| virtual trpgwAppFile * | GetNewWAppFile (trpgEndian inNess, const char *fileName, bool reuse=false) |
| virtual trpgr_Archive * | GetArchiveReader () |
| virtual int32 | WriteHeaderData (const char *dataPtr, int32 length, FILE *filehandle) |
| virtual int32 | GetMagicNumber () |
Public Member Functions inherited from trpgCheckable | |
| trpgCheckable (void) | |
| virtual | ~trpgCheckable (void) |
| bool | isValid (void) const |
| Returns the state of the valid flag, or can be overriden by a subclass to do a more complex check. More... | |
| virtual TeAttrHdl | GetHandle () const |
| virtual void | SetHandle (TeAttrHdl hdl) |
Protected Attributes | |
| bool | isRegenerate |
| Set if we're adding to an existing archive. More... | |
| trpgEndian | ness |
| trpgEndian | cpuNess |
| int | majorVersion |
| int | minorVersion |
| char | dir [1024] |
| Fed in from the outside. More... | |
| trpgHeader | header |
| Directory where we're doing all this. More... | |
| trpgMatTable | matTable |
| trpgTexTable | texTable |
| trpgModelTable | modelTable |
| trpgLightTable | lightTable |
| trpgRangeTable | rangeTable |
| trpgTextStyleTable | textStyleTable |
| trpgSupportStyleTable | supportStyleTable |
| trpgLabelPropertyTable | labelPropertyTable |
| trpgTileTable | tileTable |
| int | numLod |
| TileMode | tileMode |
| trpgwAppFile * | tileFile |
| int | tileFileCount |
| std::vector< TileFile > | tileFiles |
| std::vector< TileFileEntry > | externalTiles |
| int | maxTileFileLen |
| trpg2iPoint | addOffset |
| This offset is used when we're adding to an existing archive. More... | |
| FILE * | fp |
| bool | firstHeaderWrite |
| char | errMess [512] |
Protected Attributes inherited from trpgCheckable | |
| bool | valid |
| TeAttrHdl | handle |
| bool | writeHandle |
| trpgwArchive::trpgwArchive | ( | char * | baseDir, |
| char * | name, | ||
| trpg2dPoint & | ll, | ||
| trpg2dPoint & | ur, | ||
| int | majorVer = TRPG_VERSION_MAJOR, |
||
| int | minorVer = TRPG_VERSION_MINOR |
||
| ) |
real constructor work done in Init(...) now for quasi-virtual ctor action.
Add data to an existing archive
| trpgwArchive::trpgwArchive | ( | trpgEndian | ness = LittleEndian, |
| TileMode | tileMode = TileLocal, |
||
| int | majorVer = TRPG_VERSION_MAJOR, |
||
| int | minorVer = TRPG_VERSION_MINOR |
||
| ) |
Start an archive from scratch.
|
inline |
dummy constructor, does nothing so subclasses can have more control
|
virtual |
|
virtual |
|
virtual |
|
virtual |
Set the maximum length for a tile file (if using them) This is only a suggestion for when to stop appending.
|
virtual |
Set functions. Have to fill all these out before writing.
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
Get functions. If we're doing a regenerate we need to get at these.
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
Write functions.
For now, the header is written last.
|
virtual |
|
virtual |
|
virtual |
|
virtual |
| bool trpgwArchive::isValid | ( | void | ) | const |
virtual bool WriteModel(unsigned int,trpgMemWriteBuffer &);
| const char* trpgwArchive::getErrMess | ( | ) | const |
|
inline |
|
virtual |
|
virtual |
|
inlinevirtual |
|
virtual |
|
inlinevirtual |
|
protected |
Set if we're adding to an existing archive.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
Fed in from the outside.
|
protected |
Directory where we're doing all this.
These are passed in
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
This offset is used when we're adding to an existing archive.
|
protected |
|
protected |
|
mutableprotected |