diff options
| author | FluorescentCIAAfricanAmerican <[email protected]> | 2020-04-22 12:56:21 -0400 |
|---|---|---|
| committer | FluorescentCIAAfricanAmerican <[email protected]> | 2020-04-22 12:56:21 -0400 |
| commit | 3bf9df6b2785fa6d951086978a3e66f49427166a (patch) | |
| tree | 2c0f1f0c63c4832882bc93814ebd2c2b1c6224e5 /materialsystem/stdshaders/worldvertextransition_dx8_helper.h | |
| download | archived-source-engine-2018-hl2-src-master.tar.xz archived-source-engine-2018-hl2-src-master.zip | |
Diffstat (limited to 'materialsystem/stdshaders/worldvertextransition_dx8_helper.h')
| -rw-r--r-- | materialsystem/stdshaders/worldvertextransition_dx8_helper.h | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/materialsystem/stdshaders/worldvertextransition_dx8_helper.h b/materialsystem/stdshaders/worldvertextransition_dx8_helper.h new file mode 100644 index 0000000..d17d532 --- /dev/null +++ b/materialsystem/stdshaders/worldvertextransition_dx8_helper.h @@ -0,0 +1,44 @@ +//========= Copyright Valve Corporation, All rights reserved. ============// +// +// Purpose: +// +// $NoKeywords: $ +//============================================================================= + +#ifndef WORLDVERTEXTRANSITION_DX8_HELPER_H +#define WORLDVERTEXTRANSITION_DX8_HELPER_H + +#include <string.h> + + +//----------------------------------------------------------------------------- +// Forward declarations +//----------------------------------------------------------------------------- +class CBaseVSShader; +class IMaterialVar; +class IShaderDynamicAPI; +class IShaderShadow; + + +//----------------------------------------------------------------------------- +// Init params/ init/ draw methods +//----------------------------------------------------------------------------- +struct WorldVertexTransitionEditor_DX8_Vars_t +{ + WorldVertexTransitionEditor_DX8_Vars_t() { memset( this, 0xFF, sizeof(WorldVertexTransitionEditor_DX8_Vars_t) ); } + + int m_nBaseTextureVar; + int m_nBaseTextureFrameVar; + int m_nBaseTextureTransformVar; + int m_nBaseTexture2Var; + int m_nBaseTexture2FrameVar; + int m_nBaseTexture2TransformVar; +}; + +void InitParamsWorldVertexTransitionEditor_DX8( IMaterialVar** params, WorldVertexTransitionEditor_DX8_Vars_t &info ); +void InitWorldVertexTransitionEditor_DX8( CBaseVSShader *pShader, IMaterialVar** params, WorldVertexTransitionEditor_DX8_Vars_t &info ); +void DrawWorldVertexTransitionEditor_DX8( CBaseVSShader *pShader, IMaterialVar** params, + IShaderDynamicAPI *pShaderAPI, IShaderShadow* pShaderShadow, WorldVertexTransitionEditor_DX8_Vars_t &info ); + + +#endif // WORLDVERTEXTRANSITION_DX8_HELPER_H
\ No newline at end of file |