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

Public Types

enum  {
  Alpha, Blend, Decal, Modulate,
  AddDetail, ModulateDetail
}
 Environment mode values. More...
 
enum  {
  Point, Linear, MipmapPoint, MipmapLinear,
  MipmapBilinear, MipmapTrilinear, Nearest
}
 Values used by SetMinFilter and SetMagFilter. More...
 
enum  { Clamp, Repeat }
 Values used by SetWrap. More...
 

Public Member Functions

 trpgTextureEnv (void)
 
 ~trpgTextureEnv (void)
 
void SetEnvMode (int)
 Set the application mode for the texture. More...
 
void SetMinFilter (int)
 Set the Minification filter for a texture. More...
 
void SetMagFilter (int)
 Set the Magnification filter for a texture. More...
 
void SetWrap (int, int)
 Set the texture wrapping for S and T, respectively. More...
 
void SetBorderColor (const trpgColor &)
 Set the texture border color. More...
 
bool GetEnvMode (int32 &) const
 
bool GetMinFilter (int32 &) const
 
bool GetMagFilter (int32 &) const
 Get the magnification filter. More...
 
bool GetWrap (int &, int &) const
 
bool GetBorderColor (trpgColor &) const
 
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...
 
- 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
 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)
 

Protected Attributes

int envMode
 
int minFilter
 
int magFilter
 
int wrapS
 
int wrapT
 
trpgColor borderCol
 
- Protected Attributes inherited from trpgReadWriteable
char errMess [512]
 
- Protected Attributes inherited from trpgCheckable
bool valid
 
TeAttrHdl handle
 
bool writeHandle
 

Friends

class trpgMatTable
 

Member Enumeration Documentation

anonymous enum

Environment mode values.

Enumerator
Alpha 
Blend 
Decal 
Modulate 
AddDetail 
ModulateDetail 
anonymous enum

Values used by SetMinFilter and SetMagFilter.

Enumerator
Point 
Linear 
MipmapPoint 
MipmapLinear 
MipmapBilinear 
MipmapTrilinear 
Nearest 
anonymous enum

Values used by SetWrap.

Enumerator
Clamp 
Repeat 

Constructor & Destructor Documentation

trpgTextureEnv::trpgTextureEnv ( void  )
trpgTextureEnv::~trpgTextureEnv ( void  )

Member Function Documentation

void trpgTextureEnv::SetEnvMode ( int  )

Set the application mode for the texture.

void trpgTextureEnv::SetMinFilter ( int  )

Set the Minification filter for a texture.

void trpgTextureEnv::SetMagFilter ( int  )

Set the Magnification filter for a texture.

void trpgTextureEnv::SetWrap ( int  ,
int   
)

Set the texture wrapping for S and T, respectively.

void trpgTextureEnv::SetBorderColor ( const trpgColor )

Set the texture border color.

bool trpgTextureEnv::GetEnvMode ( int32 ) const
bool trpgTextureEnv::GetMinFilter ( int32 ) const
bool trpgTextureEnv::GetMagFilter ( int32 ) const

Get the magnification filter.

bool trpgTextureEnv::GetWrap ( int ,
int  
) const
bool trpgTextureEnv::GetBorderColor ( trpgColor ) const
bool trpgTextureEnv::isValid ( void  ) const

Validity check.

void trpgTextureEnv::Reset ( void  )
virtual

Resets the contents back to empty.

Implements trpgReadWriteable.

bool trpgTextureEnv::Write ( trpgWriteBuffer )
virtual

Writes this class to a write buffer.

Implements trpgReadWriteable.

bool trpgTextureEnv::Read ( trpgReadBuffer )
virtual

Reads this class from a read buffer.

Reimplemented from trpgReadWriteable.

bool trpgTextureEnv::Print ( trpgPrintBuffer ) const
virtual

Prints this class to a print buffer.

Reimplemented from trpgReadWriteable.

Friends And Related Function Documentation

friend class trpgMatTable
friend

Member Data Documentation

int trpgTextureEnv::envMode
protected
int trpgTextureEnv::minFilter
protected
int trpgTextureEnv::magFilter
protected
int trpgTextureEnv::wrapS
protected
int trpgTextureEnv::wrapT
protected
trpgColor trpgTextureEnv::borderCol
protected

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

Document ID: Generated on Tue Sep 21 17:42:52 EDT 2021 from SVN revision 234861
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)