Counter Strike : Global Offensive Source Code
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

60 lines
1.2 KiB

  1. //========= Copyright � 1996-2005, Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. // $NoKeywords: $
  6. //=============================================================================//
  7. #ifndef C_POINTCAMERA_H
  8. #define C_POINTCAMERA_H
  9. #ifdef _WIN32
  10. #pragma once
  11. #endif
  12. #include "c_baseentity.h"
  13. #include "basetypes.h"
  14. class C_PointCamera : public C_BaseEntity
  15. {
  16. public:
  17. DECLARE_CLASS( C_PointCamera, C_BaseEntity );
  18. DECLARE_CLIENTCLASS();
  19. public:
  20. C_PointCamera();
  21. ~C_PointCamera();
  22. bool IsActive();
  23. // C_BaseEntity.
  24. virtual bool ShouldDraw();
  25. float GetFOV();
  26. float GetResolution();
  27. bool IsFogEnabled();
  28. void GetFogColor( unsigned char &r, unsigned char &g, unsigned char &b );
  29. float GetFogStart();
  30. float GetFogMaxDensity();
  31. float GetFogEnd();
  32. bool UseScreenAspectRatio() const { return m_bUseScreenAspectRatio; }
  33. virtual void GetToolRecordingState( KeyValues *msg );
  34. protected:
  35. float m_FOV;
  36. float m_Resolution;
  37. bool m_bFogEnable;
  38. color32 m_FogColor;
  39. float m_flFogStart;
  40. float m_flFogEnd;
  41. float m_flFogMaxDensity;
  42. bool m_bActive;
  43. bool m_bUseScreenAspectRatio;
  44. public:
  45. C_PointCamera *m_pNext;
  46. };
  47. C_PointCamera *GetPointCameraList();
  48. #endif // C_POINTCAMERA_H