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.

46 lines
1.1 KiB

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. // $NoKeywords: $
  6. //=============================================================================
  7. #ifndef DOD_VIEW_SCENE_H
  8. #define DOD_VIEW_SCENE_H
  9. #ifdef _WIN32
  10. #pragma once
  11. #endif
  12. #include "iviewrender.h"
  13. #include "viewrender.h"
  14. #include "colorcorrectionmgr.h"
  15. //-----------------------------------------------------------------------------
  16. // Purpose: Implements the interview to view rendering for the client .dll
  17. //-----------------------------------------------------------------------------
  18. class CDODViewRender : public CViewRender
  19. {
  20. public:
  21. CDODViewRender();
  22. void Init( );
  23. void Shutdown( );
  24. void RenderView( const CViewSetup &view, int nClearFlags, int whatToDraw );
  25. void RenderPlayerSprites();
  26. void PerformStunEffect( const CViewSetup &view );
  27. void InitColorCorrection( );
  28. void ShutdownColorCorrection( );
  29. void SetupColorCorrection( );
  30. private:
  31. ITexture *m_pStunTexture;
  32. ClientCCHandle_t m_SpectatorLookupHandle;
  33. ClientCCHandle_t m_DeathLookupHandle;
  34. bool m_bLookupActive;
  35. };
  36. #endif //DOD_VIEW_SCENE_H