VR-Forces 5.0.3 Developer's Guide
 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)
 
bool GetBaseMaterial (int32 &matSubTable, int32 &matID) const
 
void SetSubImageInfo (const SubImageInfo &)
 
bool GetSubImageInfo (SubImageInfo &) const
 
void SetAddr (const trpgwAppAddress &)
 
void SetNthAddr (unsigned int subtable, const trpgwAppAddress &)
 
bool GetAddr (trpgwAppAddress &) const
 
bool GetNthAddr (unsigned int subtable, trpgwAppAddress &) const
 
bool GetNumLocals (int &) const
 
bool isValid (void) const
 
void Reset (void)
 
bool Write (trpgWriteBuffer &)
 
bool Read (trpgReadBuffer &)
 
bool Print (trpgPrintBuffer &) const
 
- Public Member Functions inherited from trpgReadWriteable
 trpgReadWriteable ()
 
const chargetErrMess () const
 
- Public Member Functions inherited from trpgCheckable
 trpgCheckable (void)
 
virtual ~trpgCheckable (void)
 
bool isValid (void) const
 
virtual TeAttrHdl GetHandle () const
 
virtual void SetHandle (TeAttrHdl hdl)
 

Protected Attributes

int32 baseMatTable
 
int32 baseMat
 
int32 sx
 
int32 sy
 
int32 ex
 
int32 ey
 
int32 destWidth
 
int32 destHeight
 
std::vector< trpgwAppAddressaddr
 
- 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

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 Jun 1 17:58:13 EDT 2023 from SVN revision 255404
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)