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

Classes

class  SubImageInfo

Public Member Functions

 trpgLocalMaterial (void)
 ~trpgLocalMaterial (void)
void SetBaseMaterial (int32 matSubTable, int32 matID)
 Set the base material for this local material.
bool GetBaseMaterial (int32 &matSubTable, int32 &matID) const
void SetSubImageInfo (const SubImageInfo &)
 Set the sub image info (only for writers)
bool GetSubImageInfo (SubImageInfo &) const
void SetAddr (const trpgwAppAddress &)
 Set the address info (only for writers)
void SetNthAddr (unsigned int subtable, const trpgwAppAddress &)
 Set address info for one of multiple local textures.
bool GetAddr (trpgwAppAddress &) const
bool GetNthAddr (unsigned int subtable, trpgwAppAddress &) const
 Get address info for one of multiple local textures.
bool GetNumLocals (int &) const
 Get the number of local images associated with this local material Tile Local Images only.
bool isValid (void) const
 Set the storage sizes for all mipmap levels bool SetStorageSizes(vector<int> &);.
void Reset (void)
 Reads this class from a read buffer.
bool Write (trpgWriteBuffer &)
 Writes this class to a write buffer.
bool Read (trpgReadBuffer &)
 Reads this class from a read buffer.
bool Print (trpgPrintBuffer &) const
 Prints this class to a print buffer.
- 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)

Protected Attributes

int32 baseMatTable
int32 baseMat
int32 sx
 These are valid for Global images.
int32 sy
int32 ex
int32 ey
int32 destWidth
int32 destHeight
std::vector< trpgwAppAddressaddr
 Storage sizes for each mipmap level.
- Protected Attributes inherited from trpgReadWriteable
char errMess [512]
- Protected Attributes inherited from trpgCheckable
bool valid
TeAttrHdl handle
bool writeHandle

Constructor & Destructor Documentation

trpgLocalMaterial::trpgLocalMaterial ( void  )
trpgLocalMaterial::~trpgLocalMaterial ( void  )

Member Function Documentation

void trpgLocalMaterial::SetBaseMaterial ( int32  matSubTable,
int32  matID 
)

Set the base material for this local material.

bool trpgLocalMaterial::GetBaseMaterial ( int32 matSubTable,
int32 matID 
) const
void trpgLocalMaterial::SetSubImageInfo ( const SubImageInfo )

Set the sub image info (only for writers)

bool trpgLocalMaterial::GetSubImageInfo ( SubImageInfo ) const
void trpgLocalMaterial::SetAddr ( const trpgwAppAddress )

Set the address info (only for writers)

void trpgLocalMaterial::SetNthAddr ( unsigned int  subtable,
const trpgwAppAddress  
)

Set address info for one of multiple local textures.

bool trpgLocalMaterial::GetAddr ( trpgwAppAddress ) const
bool trpgLocalMaterial::GetNthAddr ( unsigned int  subtable,
trpgwAppAddress  
) const

Get address info for one of multiple local textures.

bool trpgLocalMaterial::GetNumLocals ( int ) const

Get the number of local images associated with this local material Tile Local Images only.

bool trpgLocalMaterial::isValid ( void  ) const

Set the storage sizes for all mipmap levels bool SetStorageSizes(vector<int> &);.

Get the storage sizes for all mipmap levels. bool GetStorageSizes(const vector<int> *) const; Validity check

Reimplemented from trpgCheckable.

void trpgLocalMaterial::Reset ( void  )
virtual

Reads this class from a read buffer.

Implements trpgReadWriteable.

bool trpgLocalMaterial::Write ( trpgWriteBuffer )
virtual

Writes this class to a write buffer.

Implements trpgReadWriteable.

bool trpgLocalMaterial::Read ( trpgReadBuffer )
virtual

Reads this class from a read buffer.

Reimplemented from trpgReadWriteable.

bool trpgLocalMaterial::Print ( trpgPrintBuffer ) const
virtual

Prints this class to a print buffer.

Reimplemented from trpgReadWriteable.

Member Data Documentation

int32 trpgLocalMaterial::baseMatTable
protected
int32 trpgLocalMaterial::baseMat
protected
int32 trpgLocalMaterial::sx
protected

These are valid for Global images.

int32 trpgLocalMaterial::sy
protected
int32 trpgLocalMaterial::ex
protected
int32 trpgLocalMaterial::ey
protected
int32 trpgLocalMaterial::destWidth
protected
int32 trpgLocalMaterial::destHeight
protected
std::vector<trpgwAppAddress> trpgLocalMaterial::addr
protected

Storage sizes for each mipmap level.

Important for compressed textures. vector<int> storageSize; This is valid only for Tile Local images


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

Document ID: Generated on Thu Apr 12 03:15:37 EDT 2018 from SVN revision 187986
Copyright © 2005-2018 VT MÄK. All Rights Reserved (www.mak.com)