DtCdbEffectTextureCodeThe Component Selector for CDB Model Textures.
More...
DtCdbEffectTextureCode
The Component Selector for CDB Model Textures.
| makVrv::DtCdbEffectTextureCode::DtCdbEffectTextureCode |
( |
int |
CS1, |
|
|
int |
CS2Min, |
|
|
int |
CS2Max |
|
) |
| |
CTOR.
- Parameters
-
| CS1 | The texture kind , represented by "S". |
| CS2Min | The lower bound of the texture index, represented by "T". |
| CS2Max | The 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
-
| effectSuffix | The suffix pattern of the effect texture, only applicable for the effect textures Cdb doesn't support natively. |
| 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.
| 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: