diff options
| author | Joe Ludwig <[email protected]> | 2013-06-26 15:22:04 -0700 |
|---|---|---|
| committer | Joe Ludwig <[email protected]> | 2013-06-26 15:22:04 -0700 |
| commit | 39ed87570bdb2f86969d4be821c94b722dc71179 (patch) | |
| tree | abc53757f75f40c80278e87650ea92808274aa59 /mp/src/public/game/client/iclientrendertargets.h | |
| download | source-sdk-2013-39ed87570bdb2f86969d4be821c94b722dc71179.tar.xz source-sdk-2013-39ed87570bdb2f86969d4be821c94b722dc71179.zip | |
First version of the SOurce SDK 2013
Diffstat (limited to 'mp/src/public/game/client/iclientrendertargets.h')
| -rw-r--r-- | mp/src/public/game/client/iclientrendertargets.h | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/mp/src/public/game/client/iclientrendertargets.h b/mp/src/public/game/client/iclientrendertargets.h new file mode 100644 index 00000000..7b640eee --- /dev/null +++ b/mp/src/public/game/client/iclientrendertargets.h @@ -0,0 +1,41 @@ +//========= Copyright Valve Corporation, All rights reserved. ============//
+//
+// Purpose: Exposes interfaces to the engine which allow the client to setup their own render targets
+// during the proper period of material system's init.
+//
+// $NoKeywords: $
+//=============================================================================//
+
+#ifndef ICLIENTRENDERTARGETS_H
+#define ICLIENTRENDERTARGETS_H
+#ifdef _WIN32
+ #pragma once
+#endif
+
+#include "interface.h" // For base interface
+
+class IMaterialSystem;
+class IMaterialSystemHardwareConfig;
+
+//---------------------------------------------------------------------------------------------------
+// Purpose: Exposes interfaces to the engine which allow the client to setup their own render targets
+// during the proper period of material system's init.
+//---------------------------------------------------------------------------------------------------
+abstract_class IClientRenderTargets
+{
+public:
+ // Pass the material system interface to the client-- Their Material System singleton has not been created
+ // at the time they receive this call.
+ virtual void InitClientRenderTargets( IMaterialSystem* pMaterialSystem, IMaterialSystemHardwareConfig* pHardwareConfig ) = 0;
+
+ // Call shutdown on every created refrence-- Clients keep track of this themselves
+ // and should add shutdown code to this function whenever they add a new render target.
+ virtual void ShutdownClientRenderTargets( void ) = 0;
+
+};
+
+#define CLIENTRENDERTARGETS_INTERFACE_VERSION "ClientRenderTargets001"
+
+extern IClientRenderTargets * g_pClientRenderTargets;
+
+#endif // ICLIENTRENDERTARGETS_H
|