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 Member Functions | Private Attributes
makVrv::DtCdbEffectTextureCode Class Reference

DtCdbEffectTextureCodeThe Component Selector for CDB Model Textures. More...

Public Member Functions

 DtCdbEffectTextureCode (int CS1, int CS2Min, int CS2Max)
 CTOR. More...
 
 DtCdbEffectTextureCode (const std::string &effectSuffix)
 CTOR. More...
 
int CS1 ()
 Gets the texture kind, represented by "S". More...
 
int CS2Min ()
 Gets the lower bound of the texture index, represented by "T". More...
 
int CS2Max ()
 Gets the upper bound of the texture index, represented by "T". More...
 
bool isSupportedbyCdb ()
 Return this effect texture is supported by CDB natively. More...
 
const std::string & effectTextureSuffix () const
 Return the suffix of this effect texture, only applicable if it's not supported by CDB. More...
 
bool match (const std::string &texName) const
 Check if the texture name match the Component Selector. More...
 

Private Attributes

int myCS1
 
int myCS2Min
 
int myCS2Max
 
bool myIsSupportedByCdb
 
std::string myEffectTextureSuffix
 

Detailed Description

DtCdbEffectTextureCode

The Component Selector for CDB Model Textures.

Constructor & Destructor Documentation

makVrv::DtCdbEffectTextureCode::DtCdbEffectTextureCode ( int  CS1,
int  CS2Min,
int  CS2Max 
)

CTOR.

Parameters
CS1The texture kind , represented by "S".
CS2MinThe lower bound of the texture index, represented by "T".
CS2MaxThe upper bound of the texture index, represented by "T".
makVrv::DtCdbEffectTextureCode::DtCdbEffectTextureCode ( const std::string &  effectSuffix)

CTOR.

CDB support a bunch of effect textures, normal, light map, dirt map, etc. But It doesn't support Specular, Specular exponent, Ambient Occlusion, etc. We want support those in CDB as suffix texture. For example, if we found SPR(specular map), we will apply specular map on it.

Parameters
effectSuffixThe suffix pattern of the effect texture, only applicable for the effect textures Cdb doesn't support natively.

Member Function Documentation

int makVrv::DtCdbEffectTextureCode::CS1 ( )

Gets the texture kind, represented by "S".

int makVrv::DtCdbEffectTextureCode::CS2Min ( )

Gets the lower bound of the texture index, represented by "T".

int makVrv::DtCdbEffectTextureCode::CS2Max ( )

Gets the upper bound of the texture index, represented by "T".

bool makVrv::DtCdbEffectTextureCode::isSupportedbyCdb ( )

Return this effect texture is supported by CDB natively.

const std::string& makVrv::DtCdbEffectTextureCode::effectTextureSuffix ( ) const

Return the suffix of this effect texture, only applicable if it's not supported by CDB.

bool makVrv::DtCdbEffectTextureCode::match ( const std::string &  texName) const

Check if the texture name match the Component Selector.

For the effect texture CDB supports, it will check the CS1_CS2 by CDB Specification. For the effect texture CDB doesn't support natively, it will try match the suffix pattern.

Member Data Documentation

int makVrv::DtCdbEffectTextureCode::myCS1
private
int makVrv::DtCdbEffectTextureCode::myCS2Min
private
int makVrv::DtCdbEffectTextureCode::myCS2Max
private
bool makVrv::DtCdbEffectTextureCode::myIsSupportedByCdb
private
std::string makVrv::DtCdbEffectTextureCode::myEffectTextureSuffix
private

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)