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

Public Member Functions | |
| trpgTexture1_0 | operator= (const trpgTexture &) |
| Assignment operator from a regular trpgTexture. | |
| bool | Read (trpgReadBuffer &) |
| Knows how to read old style textures. | |
| bool | Write (trpgWriteBuffer &) |
| Can write old style textures. | |
Public Member Functions inherited from trpgTexture | |
| trpgTexture (void) | |
| trpgTexture (const trpgTexture &) | |
| ~trpgTexture (void) | |
| void | SetName (const char *) |
| Set the texture name. | |
| 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. | |
| bool | GetImageType (ImageType &) const |
| Retrieve the image type for this texture. | |
| bool | GetImageSize (trpg2iPoint &) const |
| Retrieve the size of this image. Valid only for Local and Template textures. | |
| bool | GetImageAddr (trpgwAppAddress &) const |
| Get the location of a Local image. | |
| bool | GetImageDepth (int32 &depth) const |
| Figure out the image depth from the type. | |
| bool | GetIsMipmap (bool &) const |
| Determine whether this image (must be Local or Template) has all its mipmaps. | |
| void | SetImageMode (ImageMode) |
| Set the image mode of this texture. Used by writers only. | |
| void | SetImageType (ImageType) |
| Set the image type of this texture. See GetImageType for details. | |
| void | SetImageSize (const trpg2iPoint &) |
| Set the image size of this texture. See GetImageSize for details. | |
| void | SetImageAddr (const trpgwAppAddress &) |
| Set the image location (For Local images only) | |
| void | SetIsMipmap (bool) |
| Set whether or not this is a full set of mipmaps. | |
| void | SetNumMipmap (int) |
| Set the storage sizes for all mipmap levels void SetStorageSizes(vector<int> &);. | |
| void | SetNumLayer (int) |
| Set the number of layers used in an RGBX image. | |
| bool | GetNumLayer (int &) const |
| Get the number of layers used in an RGBX image. | |
| int32 | CalcNumMipmaps () const |
| int32 | CalcTotalSize () const |
| Calculate the total size of this texture. | |
| int32 | MipLevelSize (int miplevel) |
| Returns the size of a given mip level. | |
| int32 | MipLevelOffset (int miplevel) |
| Returns the offset of the mip level in the whole texture data buffer. | |
| bool | isValid (void) const |
| Validity check. | |
| void | Reset (void) |
| Resets the contents back to empty. | |
| bool | Print (trpgPrintBuffer &) const |
| Prints this class to a print buffer. | |
| 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) |
| 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 | |
Protected Attributes inherited from trpgTexture | |
| ImageMode | mode |
| Mode for this texture. See ImageMode for details. | |
| ImageType | type |
| Type of texture (only valid if ImageMode is Local or Template) | |
| char * | name |
| The name really only has meaning for External or Global textures. | |
| int | useCount |
| int | sizeX |
| The size values are used only if this is a Local or Template image. | |
| int | sizeY |
| bool | isMipmap |
| Whether or not there are mipmap levels. | |
| int | numMipMap |
| Number of mipmap levels, 0 if not present. | |
| int | numLayer |
| Number of layers (for RGBX) | |
| std::vector< int > | storageSize |
| Sizes of each level. | |
| std::vector< int > | levelOffset |
| Offset of each level. | |
| trpgwAppAddress | addr |
| Address is used only for Local textures. | |
| trpgTexture1_0 trpgTexture1_0::operator= | ( | const trpgTexture & | ) |
Assignment operator from a regular trpgTexture.
Reimplemented from trpgTexture.
|
virtual |
Knows how to read old style textures.
Reimplemented from trpgTexture.
|
virtual |
Can write old style textures.
Reimplemented from trpgTexture.