VR-Forces 4.3.1 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
List of all members | Public Member Functions
trpgTexture1_0 Class Reference
Inheritance diagram for trpgTexture1_0:
Inheritance graph
[legend]

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 chargetErrMess () 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)
charname
 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< intstorageSize
 Sizes of each level.
std::vector< intlevelOffset
 Offset of each level.
trpgwAppAddress addr
 Address is used only for Local textures.

Member Function Documentation

trpgTexture1_0 trpgTexture1_0::operator= ( const trpgTexture )

Assignment operator from a regular trpgTexture.

Reimplemented from trpgTexture.

bool trpgTexture1_0::Read ( trpgReadBuffer )
virtual

Knows how to read old style textures.

Reimplemented from trpgTexture.

bool trpgTexture1_0::Write ( trpgWriteBuffer )
virtual

Can write old style textures.

Reimplemented from trpgTexture.


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

Document ID: Generated on Wed Jul 29 00:55:00 EDT 2015 from SVN revision 155257
Copyright © 2005-2015 VT MÄK. All Rights Reserved (www.mak.com)