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

Public Member Functions | |
| trpgTexture1_0 | operator= (const trpgTexture &) |
| Assignment operator from a regular trpgTexture. More... | |
| bool | Read (trpgReadBuffer &) |
| Knows how to read old style textures. More... | |
| bool | Write (trpgWriteBuffer &) |
| Can write old style textures. More... | |
Public Member Functions inherited from trpgTexture | |
| trpgTexture (void) | |
| trpgTexture (const trpgTexture &) | |
| ~trpgTexture (void) | |
| void | SetName (const char *) |
| Set the texture name. More... | |
| bool | GetName (char *retStr, int strLen) const |
| void | SetNumTile (int) |
| void | AddTile (void) |
| bool | GetNumTile (int &) const |
| bool | GetImageMode (ImageMode &) const |
| Retrieve the image mode for this texture. See ImageMode for details. More... | |
| bool | GetImageType (ImageType &) const |
| Retrieve the image type for this texture. More... | |
| bool | GetImageSize (trpg2iPoint &) const |
| Retrieve the size of this image. Valid only for Local and Template textures. More... | |
| bool | GetImageAddr (trpgwAppAddress &) const |
| Get the location of a Local image. More... | |
| bool | GetImageDepth (int32 &depth) const |
| Figure out the image depth from the type. More... | |
| bool | GetIsMipmap (bool &) const |
| Determine whether this image (must be Local or Template) has all its mipmaps. More... | |
| void | SetImageMode (ImageMode) |
| Set the image mode of this texture. Used by writers only. More... | |
| void | SetImageType (ImageType) |
| Set the image type of this texture. See GetImageType for details. More... | |
| void | SetImageSize (const trpg2iPoint &) |
| Set the image size of this texture. See GetImageSize for details. More... | |
| void | SetImageAddr (const trpgwAppAddress &) |
| Set the image location (For Local images only) More... | |
| void | SetIsMipmap (bool) |
| Set whether or not this is a full set of mipmaps. More... | |
| void | SetNumMipmap (int) |
| Set the storage sizes for all mipmap levels void SetStorageSizes(vector<int> &);. More... | |
| void | SetNumLayer (int) |
| Set the number of layers used in an RGBX image. More... | |
| bool | GetNumLayer (int &) const |
| Get the number of layers used in an RGBX image. More... | |
| int32 | CalcNumMipmaps () const |
| int32 | CalcTotalSize () const |
| Calculate the total size of this texture. More... | |
| int32 | MipLevelSize (int miplevel) |
| Returns the size of a given mip level. More... | |
| int32 | MipLevelOffset (int miplevel) |
| Returns the offset of the mip level in the whole texture data buffer. More... | |
| bool | isValid (void) const |
| Validity check. More... | |
| void | Reset (void) |
| Resets the contents back to empty. More... | |
| bool | Write (trpgWriteBuffer &) |
| Writes this class to a write buffer. More... | |
| bool | Read (trpgReadBuffer &) |
| Reads this class from a read buffer. More... | |
| bool | Print (trpgPrintBuffer &) const |
| Prints this class to a print buffer. More... | |
| trpgTexture & | operator= (const trpgTexture &) |
| int | operator== (const trpgTexture &) const |
Public Member Functions inherited from trpgReadWriteable | |
| trpgReadWriteable () | |
| const char * | getErrMess () const |
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) |
Additional Inherited Members | |
Public Types inherited from trpgTexture | |
| enum | ImageMode { External, Local, Global, Template } |
| enum | ImageType { trpg_RGB8, trpg_RGBA8, trpg_INT8, trpg_INTA8, trpg_FXT1, trpg_Filler, trpg_RGBX, trpg_Unknown, trpg_DDS, trpg_DXT1, trpg_DXT3, trpg_DXT5, trpg_MCM5, trpg_MCM6R, trpg_MCM6A, trpg_MCM7RA, trpg_MCM7AR } |
Protected Member Functions inherited from trpgTexture | |
| void | CalcMipLevelSizes () |
| calculate the mip level sizes More... | |
Protected Attributes inherited from trpgTexture | |
| ImageMode | mode |
| Mode for this texture. See ImageMode for details. More... | |
| ImageType | type |
| Type of texture (only valid if ImageMode is Local or Template) More... | |
| char * | name |
| The name really only has meaning for External or Global textures. More... | |
| int | useCount |
| int | sizeX |
| The size values are used only if this is a Local or Template image. More... | |
| int | sizeY |
| bool | isMipmap |
| Whether or not there are mipmap levels. More... | |
| int | numMipMap |
| Number of mipmap levels, 0 if not present. More... | |
| int | numLayer |
| Number of layers (for RGBX) More... | |
| std::vector< int > | storageSize |
| Sizes of each level. More... | |
| std::vector< int > | levelOffset |
| Offset of each level. More... | |
| trpgwAppAddress | addr |
| Address is used only for Local textures. More... | |
Protected Attributes inherited from trpgReadWriteable | |
| char | errMess [512] |
Protected Attributes inherited from trpgCheckable | |
| bool | valid |
| TeAttrHdl | handle |
| bool | writeHandle |
| trpgTexture1_0 trpgTexture1_0::operator= | ( | const trpgTexture & | ) |
Assignment operator from a regular trpgTexture.
|
virtual |
Knows how to read old style textures.
Reimplemented from trpgReadWriteable.
|
virtual |
Can write old style textures.
Implements trpgReadWriteable.