#include <StdMeshMaterial.h>
Classes | |
| class | Tex |
| class | TexPtr |
| struct | Transformation |
| union | Transformation.__unnamed54__ |
| struct | Transformation.__unnamed54__.Rotate |
| struct | Transformation.__unnamed54__.RotateAnim |
| struct | Transformation.__unnamed54__.Scale |
| struct | Transformation.__unnamed54__.Scroll |
| struct | Transformation.__unnamed54__.ScrollAnim |
| struct | Transformation.__unnamed54__.Transform |
| struct | Transformation.__unnamed54__.WaveXForm |
Public Types | |
| enum | TexAddressModeType { AM_Wrap , AM_Clamp , AM_Mirror , AM_Border } |
| enum | FilteringType { F_None , F_Point , F_Linear , F_Anisotropic } |
| enum | BlendOpType { BO_Replace , BO_Add , BO_Modulate , BO_AlphaBlend } |
| enum | BlendOpExType { BOX_Source1 , BOX_Source2 , BOX_Modulate , BOX_ModulateX2 , BOX_ModulateX4 , BOX_Add , BOX_AddSigned , BOX_AddSmooth , BOX_Subtract , BOX_BlendDiffuseAlpha , BOX_BlendTextureAlpha , BOX_BlendCurrentAlpha , BOX_BlendManual , BOX_Dotproduct , BOX_BlendDiffuseColor } |
| enum | BlendOpSourceType { BOS_Current , BOS_Texture , BOS_Diffuse , BOS_Specular , BOS_PlayerColor , BOS_Manual } |
Public Member Functions | |
| StdMeshMaterialTextureUnit () | |
| void | LoadTexture (StdMeshMaterialParserCtx &ctx, const char *texname) |
| void | Load (StdMeshMaterialParserCtx &ctx) |
| bool | HasTexture () const |
| size_t | GetNumTextures () const |
| const C4TexRef & | GetTexture (unsigned int i) const |
| bool | HasFrameAnimation () const |
| bool | HasTexCoordAnimation () const |
Public Attributes | |
| StdCopyStrBuf | Name |
| float | Duration {0.0f} |
| TexAddressModeType | TexAddressMode {AM_Wrap} |
| float | TexBorderColor [4] |
| FilteringType | Filtering [3] |
| BlendOpExType | ColorOpEx {BOX_Modulate} |
| BlendOpSourceType | ColorOpSources [2] |
| float | ColorOpManualFactor {0.0f} |
| float | ColorOpManualColor1 [3] |
| float | ColorOpManualColor2 [3] |
| BlendOpExType | AlphaOpEx {BOX_Modulate} |
| BlendOpSourceType | AlphaOpSources [2] |
| float | AlphaOpManualFactor {0.0f} |
| float | AlphaOpManualAlpha1 |
| float | AlphaOpManualAlpha2 |
| std::vector< Transformation > | Transformations |
Definition at line 192 of file StdMeshMaterial.h.
| union StdMeshMaterialTextureUnit::Transformation.__unnamed54__ |
Definition at line 281 of file StdMeshMaterial.h.
| Class Members | ||
|---|---|---|
| __unnamed54__ | Rotate | |
| __unnamed54__ | RotateAnim | |
| __unnamed54__ | Scale | |
| __unnamed54__ | Scroll | |
| __unnamed54__ | ScrollAnim | |
| __unnamed54__ | Transform | |
| __unnamed54__ | WaveXForm | |
| struct StdMeshMaterialTextureUnit::Transformation.__unnamed54__.Rotate |
Definition at line 285 of file StdMeshMaterial.h.
| Class Members | ||
|---|---|---|
| float | Angle | |
| struct StdMeshMaterialTextureUnit::Transformation.__unnamed54__.RotateAnim |
Definition at line 286 of file StdMeshMaterial.h.
| Class Members | ||
|---|---|---|
| float | RevsPerSec | |
| struct StdMeshMaterialTextureUnit::Transformation.__unnamed54__.Scale |
Definition at line 287 of file StdMeshMaterial.h.
| Class Members | ||
|---|---|---|
| float | X | |
| float | Y | |
| struct StdMeshMaterialTextureUnit::Transformation.__unnamed54__.Scroll |
Definition at line 283 of file StdMeshMaterial.h.
| Class Members | ||
|---|---|---|
| float | X | |
| float | Y | |
| struct StdMeshMaterialTextureUnit::Transformation.__unnamed54__.ScrollAnim |
Definition at line 284 of file StdMeshMaterial.h.
| Class Members | ||
|---|---|---|
| float | XSpeed | |
| float | YSpeed | |
| struct StdMeshMaterialTextureUnit::Transformation.__unnamed54__.Transform |
Definition at line 288 of file StdMeshMaterial.h.
| Class Members | ||
|---|---|---|
| float | M[16] | |
| struct StdMeshMaterialTextureUnit::Transformation.__unnamed54__.WaveXForm |
Definition at line 289 of file StdMeshMaterial.h.
| Class Members | ||
|---|---|---|
| float | Amplitude | |
| float | Base | |
| float | Frequency | |
| float | Phase | |
| WaveType | Wave | |
| XFormType | XForm | |
Definition at line 219 of file StdMeshMaterial.h.
| Enumerator | |
|---|---|
| BOS_Current | |
| BOS_Texture | |
| BOS_Diffuse | |
| BOS_Specular | |
| BOS_PlayerColor | |
| BOS_Manual | |
Definition at line 238 of file StdMeshMaterial.h.
| Enumerator | |
|---|---|
| BO_Replace | |
| BO_Add | |
| BO_Modulate | |
| BO_AlphaBlend | |
Definition at line 211 of file StdMeshMaterial.h.
| StdMeshMaterialTextureUnit::StdMeshMaterialTextureUnit | ( | ) |
Definition at line 996 of file StdMeshMaterial.cpp.
References AlphaOpManualAlpha1, AlphaOpManualAlpha2, AlphaOpSources, BOS_Current, BOS_Texture, ColorOpManualColor1, ColorOpManualColor2, ColorOpSources, F_Linear, F_Point, Filtering, and TexBorderColor.
|
inline |
Definition at line 339 of file StdMeshMaterial.h.
Referenced by StdMeshInstance::ExecuteAnimation(), and CStdGL::PrepareMaterial().
|
inline |
Definition at line 340 of file StdMeshMaterial.h.
Referenced by CStdGL::PrepareMaterial().
|
inline |
Definition at line 341 of file StdMeshMaterial.h.
References Duration.
Referenced by StdMeshInstance::ExecuteAnimation().
|
inline |
Definition at line 342 of file StdMeshMaterial.h.
References Transformations.
Referenced by StdMeshInstance::ExecuteAnimation().
|
inline |
Definition at line 338 of file StdMeshMaterial.h.
| void StdMeshMaterialTextureUnit::Load | ( | StdMeshMaterialParserCtx & | ctx | ) |
Definition at line 1018 of file StdMeshMaterial.cpp.
References StdMeshMaterialParserCtx::AdvanceColor(), StdMeshMaterialParserCtx::AdvanceEnum(), StdMeshMaterialParserCtx::AdvanceEnums(), StdMeshMaterialParserCtx::AdvanceFloat(), StdMeshMaterialParserCtx::AdvanceFloatOptional(), StdMeshMaterialParserCtx::AdvanceIntOptional(), StdMeshMaterialParserCtx::AdvanceNonEOF(), StdMeshMaterialParserCtx::AdvanceRequired(), AlphaOpEx, AlphaOpManualAlpha1, AlphaOpManualAlpha2, AlphaOpManualFactor, AlphaOpSources, BO_Add, BO_AlphaBlend, BO_Modulate, BO_Replace, BOS_Current, BOS_Manual, BOS_Texture, BOX_Add, BOX_BlendManual, BOX_BlendTextureAlpha, BOX_Modulate, BOX_Source1, ColorOpEx, ColorOpManualColor1, ColorOpManualColor2, ColorOpManualFactor, ColorOpSources, Duration, StdMeshMaterialParserCtx::Error(), StdMeshMaterialParserCtx::ErrorUnexpectedIdentifier(), F_Anisotropic, F_None, Filtering, StdStrBuf::Format(), StdStrBuf::getData(), LoadTexture(), StdMeshMaterialTextureUnit::Transformation::T_ROTATE, StdMeshMaterialTextureUnit::Transformation::T_ROTATE_ANIM, StdMeshMaterialTextureUnit::Transformation::T_SCALE, StdMeshMaterialTextureUnit::Transformation::T_SCROLL, StdMeshMaterialTextureUnit::Transformation::T_SCROLL_ANIM, StdMeshMaterialTextureUnit::Transformation::T_TRANSFORM, StdMeshMaterialTextureUnit::Transformation::T_WAVE_XFORM, TexAddressMode, TexBorderColor, TOKEN_BRACE_CLOSE, TOKEN_IDTF, Transformations, and StdMeshMaterialTextureUnit::Transformation::TransformType.
| void StdMeshMaterialTextureUnit::LoadTexture | ( | StdMeshMaterialParserCtx & | ctx, |
| const char * | texname | ||
| ) |
Definition at line 1006 of file StdMeshMaterial.cpp.
References StdMeshMaterialParserCtx::Error(), StdMeshMaterialParserCtx::Loader, and StdMeshMaterialLoader::LoadTexture().
Referenced by Load().
| BlendOpExType StdMeshMaterialTextureUnit::AlphaOpEx {BOX_Modulate} |
Definition at line 357 of file StdMeshMaterial.h.
Referenced by Load().
| float StdMeshMaterialTextureUnit::AlphaOpManualAlpha1 |
Definition at line 360 of file StdMeshMaterial.h.
Referenced by Load(), and StdMeshMaterialTextureUnit().
| float StdMeshMaterialTextureUnit::AlphaOpManualAlpha2 |
Definition at line 361 of file StdMeshMaterial.h.
Referenced by Load(), and StdMeshMaterialTextureUnit().
| float StdMeshMaterialTextureUnit::AlphaOpManualFactor {0.0f} |
Definition at line 359 of file StdMeshMaterial.h.
Referenced by Load().
| BlendOpSourceType StdMeshMaterialTextureUnit::AlphaOpSources[2] |
Definition at line 358 of file StdMeshMaterial.h.
Referenced by Load(), and StdMeshMaterialTextureUnit().
| BlendOpExType StdMeshMaterialTextureUnit::ColorOpEx {BOX_Modulate} |
Definition at line 351 of file StdMeshMaterial.h.
Referenced by Load().
| float StdMeshMaterialTextureUnit::ColorOpManualColor1[3] |
Definition at line 354 of file StdMeshMaterial.h.
Referenced by Load(), and StdMeshMaterialTextureUnit().
| float StdMeshMaterialTextureUnit::ColorOpManualColor2[3] |
Definition at line 355 of file StdMeshMaterial.h.
Referenced by Load(), and StdMeshMaterialTextureUnit().
| float StdMeshMaterialTextureUnit::ColorOpManualFactor {0.0f} |
Definition at line 353 of file StdMeshMaterial.h.
Referenced by Load().
| BlendOpSourceType StdMeshMaterialTextureUnit::ColorOpSources[2] |
Definition at line 352 of file StdMeshMaterial.h.
Referenced by Load(), and StdMeshMaterialTextureUnit().
| float StdMeshMaterialTextureUnit::Duration {0.0f} |
Definition at line 345 of file StdMeshMaterial.h.
Referenced by StdMeshInstance::ExecuteAnimation(), HasFrameAnimation(), and Load().
| FilteringType StdMeshMaterialTextureUnit::Filtering[3] |
Definition at line 349 of file StdMeshMaterial.h.
Referenced by Load(), CStdGL::PrepareMaterial(), and StdMeshMaterialTextureUnit().
| StdCopyStrBuf StdMeshMaterialTextureUnit::Name |
Definition at line 344 of file StdMeshMaterial.h.
| TexAddressModeType StdMeshMaterialTextureUnit::TexAddressMode {AM_Wrap} |
Definition at line 347 of file StdMeshMaterial.h.
Referenced by Load(), and CStdGL::PrepareMaterial().
| float StdMeshMaterialTextureUnit::TexBorderColor[4] |
Definition at line 348 of file StdMeshMaterial.h.
Referenced by Load(), CStdGL::PrepareMaterial(), and StdMeshMaterialTextureUnit().
| std::vector<Transformation> StdMeshMaterialTextureUnit::Transformations |
Definition at line 364 of file StdMeshMaterial.h.
Referenced by HasTexCoordAnimation(), and Load().