summaryrefslogtreecommitdiff
path: root/materialsystem/stdshaders/particlelitgeneric_dx9_helper.h
diff options
context:
space:
mode:
authorFluorescentCIAAfricanAmerican <[email protected]>2020-04-22 12:56:21 -0400
committerFluorescentCIAAfricanAmerican <[email protected]>2020-04-22 12:56:21 -0400
commit3bf9df6b2785fa6d951086978a3e66f49427166a (patch)
tree2c0f1f0c63c4832882bc93814ebd2c2b1c6224e5 /materialsystem/stdshaders/particlelitgeneric_dx9_helper.h
downloadarchived-source-engine-2018-hl2-src-master.tar.xz
archived-source-engine-2018-hl2-src-master.zip
Diffstat (limited to 'materialsystem/stdshaders/particlelitgeneric_dx9_helper.h')
-rw-r--r--materialsystem/stdshaders/particlelitgeneric_dx9_helper.h47
1 files changed, 47 insertions, 0 deletions
diff --git a/materialsystem/stdshaders/particlelitgeneric_dx9_helper.h b/materialsystem/stdshaders/particlelitgeneric_dx9_helper.h
new file mode 100644
index 0000000..89316d5
--- /dev/null
+++ b/materialsystem/stdshaders/particlelitgeneric_dx9_helper.h
@@ -0,0 +1,47 @@
+//========= Copyright Valve Corporation, All rights reserved. ============//
+//
+// Purpose:
+//
+// $NoKeywords: $
+//=============================================================================
+
+#ifndef PARTICLELITGENERIC_DX9_HELPER_H
+#define PARTICLELITGENERIC_DX9_HELPER_H
+
+#include <string.h>
+
+
+//-----------------------------------------------------------------------------
+// Forward declarations
+//-----------------------------------------------------------------------------
+class CBaseVSShader;
+class IMaterialVar;
+class IShaderDynamicAPI;
+class IShaderShadow;
+
+
+//-----------------------------------------------------------------------------
+// Init params/ init/ draw methods
+//-----------------------------------------------------------------------------
+struct ParticleLitGeneric_DX9_Vars_t
+{
+ ParticleLitGeneric_DX9_Vars_t() { memset( this, 0xFF, sizeof(ParticleLitGeneric_DX9_Vars_t) ); }
+
+ int m_nBaseTexture;
+ int m_nBaseTextureFrame;
+ int m_nBaseTextureTransform;
+ int m_nBumpmap;
+ int m_nBumpFrame;
+ int m_nBumpTransform;
+ int m_nAlphaTestReference;
+ int m_nFlashlightTexture;
+ int m_nFlashlightTextureFrame;
+};
+
+void InitParamsParticleLitGeneric_DX9( CBaseVSShader *pShader, IMaterialVar** params, const char *pMaterialName, ParticleLitGeneric_DX9_Vars_t &info );
+void InitParticleLitGeneric_DX9( CBaseVSShader *pShader, IMaterialVar** params, ParticleLitGeneric_DX9_Vars_t &info );
+void DrawParticleLitGeneric_DX9( CBaseVSShader *pShader, IMaterialVar** params,
+ IShaderDynamicAPI *pShaderAPI, IShaderShadow* pShaderShadow, ParticleLitGeneric_DX9_Vars_t &info );
+
+
+#endif // PARTICLELITGENERIC_DX9_HELPER_H \ No newline at end of file