aboutsummaryrefslogtreecommitdiff
path: root/sp/src/game/client/C_Env_Projected_Texture.h
diff options
context:
space:
mode:
authorJoe Ludwig <[email protected]>2013-06-26 15:22:04 -0700
committerJoe Ludwig <[email protected]>2013-06-26 15:22:04 -0700
commit39ed87570bdb2f86969d4be821c94b722dc71179 (patch)
treeabc53757f75f40c80278e87650ea92808274aa59 /sp/src/game/client/C_Env_Projected_Texture.h
downloadsource-sdk-2013-39ed87570bdb2f86969d4be821c94b722dc71179.tar.xz
source-sdk-2013-39ed87570bdb2f86969d4be821c94b722dc71179.zip
First version of the SOurce SDK 2013
Diffstat (limited to 'sp/src/game/client/C_Env_Projected_Texture.h')
-rw-r--r--sp/src/game/client/C_Env_Projected_Texture.h65
1 files changed, 65 insertions, 0 deletions
diff --git a/sp/src/game/client/C_Env_Projected_Texture.h b/sp/src/game/client/C_Env_Projected_Texture.h
new file mode 100644
index 00000000..b431ffcd
--- /dev/null
+++ b/sp/src/game/client/C_Env_Projected_Texture.h
@@ -0,0 +1,65 @@
+//========= Copyright Valve Corporation, All rights reserved. ============//
+//
+// Purpose:
+//
+// $NoKeywords: $
+//=============================================================================//
+
+#ifndef C_ENVPROJECTEDTEXTURE_H
+#define C_ENVPROJECTEDTEXTURE_H
+#ifdef _WIN32
+#pragma once
+#endif
+
+#include "c_baseentity.h"
+#include "basetypes.h"
+
+//-----------------------------------------------------------------------------
+// Purpose:
+//-----------------------------------------------------------------------------
+class C_EnvProjectedTexture : public C_BaseEntity
+{
+ DECLARE_CLASS( C_EnvProjectedTexture, C_BaseEntity );
+public:
+ DECLARE_CLIENTCLASS();
+
+ C_EnvProjectedTexture();
+ ~C_EnvProjectedTexture();
+
+ virtual void OnDataChanged( DataUpdateType_t updateType );
+ void ShutDownLightHandle( void );
+
+ virtual void Simulate();
+
+ void UpdateLight( bool bForceUpdate );
+
+ bool ShadowsEnabled();
+
+ float GetFOV();
+
+private:
+
+ ClientShadowHandle_t m_LightHandle;
+
+ EHANDLE m_hTargetEntity;
+
+ bool m_bState;
+ float m_flLightFOV;
+ bool m_bEnableShadows;
+ bool m_bLightOnlyTarget;
+ bool m_bLightWorld;
+ bool m_bCameraSpace;
+ color32 m_cLightColor;
+ float m_flAmbient;
+ char m_SpotlightTextureName[ MAX_PATH ];
+ int m_nSpotlightTextureFrame;
+ int m_nShadowQuality;
+ bool m_bCurrentShadow;
+
+public:
+ C_EnvProjectedTexture *m_pNext;
+};
+
+C_EnvProjectedTexture* GetEnvProjectedTextureList();
+
+#endif // C_ENVPROJECTEDTEXTURE_H