summaryrefslogtreecommitdiff
path: root/public/materialsystem/ishaderapi.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 /public/materialsystem/ishaderapi.h
downloadarchived-source-engine-2018-hl2-src-master.tar.xz
archived-source-engine-2018-hl2-src-master.zip
Diffstat (limited to 'public/materialsystem/ishaderapi.h')
-rw-r--r--public/materialsystem/ishaderapi.h43
1 files changed, 43 insertions, 0 deletions
diff --git a/public/materialsystem/ishaderapi.h b/public/materialsystem/ishaderapi.h
new file mode 100644
index 0000000..e16ad8c
--- /dev/null
+++ b/public/materialsystem/ishaderapi.h
@@ -0,0 +1,43 @@
+//========= Copyright Valve Corporation, All rights reserved. ============//
+//
+// Purpose: NOTE: This file is for backward compat!
+// We'll get rid of it soon. Most of the contents of this file were moved
+// into shaderpi/ishadershadow.h, shaderapi/ishaderdynamic.h, or
+// shaderapi/shareddefs.h
+//
+// $NoKeywords: $
+//
+//===========================================================================//
+
+#ifndef ISHADERAPI_MS_H
+#define ISHADERAPI_MS_H
+
+#ifdef _WIN32
+#pragma once
+#endif
+
+#include <shaderapi/shareddefs.h>
+#include <shaderapi/ishadershadow.h>
+#include <shaderapi/ishaderdynamic.h>
+
+
+//-----------------------------------------------------------------------------
+// forward declarations
+//-----------------------------------------------------------------------------
+class IMaterialVar;
+
+
+//-----------------------------------------------------------------------------
+// Methods that can be called from the SHADER_INIT blocks of shaders
+//-----------------------------------------------------------------------------
+abstract_class IShaderInit
+{
+public:
+ // Loads up a texture
+ virtual void LoadTexture( IMaterialVar *pTextureVar, const char *pTextureGroupName, int nAdditionalCreationFlags = 0 ) = 0;
+ virtual void LoadBumpMap( IMaterialVar *pTextureVar, const char *pTextureGroupName ) = 0;
+ virtual void LoadCubeMap( IMaterialVar **ppParams, IMaterialVar *pTextureVar, int nAdditionalCreationFlags = 0 ) = 0;
+};
+
+
+#endif // ISHADERAPI_MS_H