Team Fortress 2 Source Code as on 22/4/2020
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.

39 lines
1.0 KiB

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. // $NoKeywords: $
  6. //=============================================================================//
  7. #ifndef CS_VIEW_SCENE_H
  8. #define CS_VIEW_SCENE_H
  9. #ifdef _WIN32
  10. #pragma once
  11. #endif
  12. #include "viewrender.h"
  13. //-----------------------------------------------------------------------------
  14. // Purpose: Implements the interview to view rendering for the client .dll
  15. //-----------------------------------------------------------------------------
  16. class CCSViewRender : public CViewRender
  17. {
  18. public:
  19. CCSViewRender();
  20. virtual void Init( void );
  21. virtual void GetScreenFadeDistances( float *min, float *max );
  22. virtual void Render2DEffectsPreHUD( const CViewSetup &view );
  23. virtual void Render2DEffectsPostHUD( const CViewSetup &view );
  24. virtual void RenderPlayerSprites( void );
  25. private:
  26. void PerformFlashbangEffect( const CViewSetup &view );
  27. void PerformNightVisionEffect( const CViewSetup &view );
  28. ITexture *m_pFlashTexture;
  29. };
  30. #endif //CS_VIEW_SCENE_H