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 /game/client/c_point_camera.h | |
| download | archived-source-engine-2018-hl2-src-master.tar.xz archived-source-engine-2018-hl2-src-master.zip | |
Diffstat (limited to 'game/client/c_point_camera.h')
| -rw-r--r-- | game/client/c_point_camera.h | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/game/client/c_point_camera.h b/game/client/c_point_camera.h new file mode 100644 index 0000000..8bca63a --- /dev/null +++ b/game/client/c_point_camera.h @@ -0,0 +1,60 @@ +//========= Copyright Valve Corporation, All rights reserved. ============// +// +// Purpose: +// +// $NoKeywords: $ +//=============================================================================// + +#ifndef C_POINTCAMERA_H +#define C_POINTCAMERA_H +#ifdef _WIN32 +#pragma once +#endif + +#include "c_baseentity.h" +#include "basetypes.h" + +class C_PointCamera : public C_BaseEntity +{ +public: + DECLARE_CLASS( C_PointCamera, C_BaseEntity ); + DECLARE_CLIENTCLASS(); + +public: + C_PointCamera(); + ~C_PointCamera(); + + bool IsActive(); + + // C_BaseEntity. + virtual bool ShouldDraw(); + + float GetFOV(); + float GetResolution(); + bool IsFogEnabled(); + void GetFogColor( unsigned char &r, unsigned char &g, unsigned char &b ); + float GetFogStart(); + float GetFogMaxDensity(); + float GetFogEnd(); + bool UseScreenAspectRatio() const { return m_bUseScreenAspectRatio; } + + virtual void GetToolRecordingState( KeyValues *msg ); + +private: + float m_FOV; + float m_Resolution; + bool m_bFogEnable; + color32 m_FogColor; + float m_flFogStart; + float m_flFogEnd; + float m_flFogMaxDensity; + bool m_bActive; + bool m_bUseScreenAspectRatio; + +public: + C_PointCamera *m_pNext; +}; + +C_PointCamera *GetPointCameraList(); + +#endif // C_POINTCAMERA_H |