blob: 3d5271db6ca7caaabd128bbc72cb9898a258e509 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
|
//========= Copyright Valve Corporation, All rights reserved. ============//
//
// Purpose : Singleton manager for color correction on the client
//
// $NoKeywords: $
//===========================================================================//
#ifndef COLORCORRECTIONMGR_H
#define COLORCORRECTIONMGR_H
#ifdef _WIN32
#pragma once
#endif
#include "igamesystem.h"
//------------------------------------------------------------------------------
// Purpose : Singleton manager for color correction on the client
//------------------------------------------------------------------------------
DECLARE_POINTER_HANDLE( ClientCCHandle_t );
#define INVALID_CLIENT_CCHANDLE ( (ClientCCHandle_t)0 )
class CColorCorrectionMgr : public CBaseGameSystem
{
// Inherited from IGameSystemPerFrame
public:
virtual char const *Name() { return "Color Correction Mgr"; }
// Other public methods
public:
CColorCorrectionMgr();
// Create, destroy color correction
ClientCCHandle_t AddColorCorrection( const char *pName, const char *pFileName = NULL );
void RemoveColorCorrection( ClientCCHandle_t );
// Modify color correction weights
void SetColorCorrectionWeight( ClientCCHandle_t h, float flWeight );
void ResetColorCorrectionWeights();
void SetResetable( ClientCCHandle_t h, bool bResetable );
// Is color correction active?
bool HasNonZeroColorCorrectionWeights() const;
private:
int m_nActiveWeightCount;
};
//------------------------------------------------------------------------------
// Singleton access
//------------------------------------------------------------------------------
extern CColorCorrectionMgr *g_pColorCorrectionMgr;
#endif // COLORCORRECTIONMGR_H
|