blob: 955d45fc40d1d73580e3c91dc04299e446b979a8 (
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
58
59
60
61
62
|
//========= Copyright Valve Corporation, All rights reserved. ============//
//
// Purpose:
//
//=============================================================================//
#ifndef VGUI_TEXTUREBUDGETPANEL_H
#define VGUI_TEXTUREBUDGETPANEL_H
#ifdef _WIN32
#pragma once
#endif
#include "vgui/vgui_basebudgetpanel.h"
#include "tier0/vprof.h"
#ifdef VPROF_ENABLED
class CTextureBudgetPanel : public CBaseBudgetPanel
{
public:
typedef CBaseBudgetPanel BaseClass;
CTextureBudgetPanel( vgui::Panel *pParent, const char *pElementName );
~CTextureBudgetPanel();
void OnCVarStateChanged();
// CBaseBudgetPanel overrides.
public:
virtual void SetTimeLabelText();
virtual void SetHistoryLabelText();
virtual void ResetAll();
// VGUI overrides.
public:
virtual void OnTick( void );
virtual void Paint();
virtual void PerformLayout();
// Internal.
private:
void SnapshotTextureHistory();
void SendConfigDataToBase();
CounterGroup_t GetCurrentCounterGroup() const;
CON_COMMAND_MEMBER_F( CTextureBudgetPanel, "showbudget_texture_global_dumpstats", DumpGlobalTextureStats, "Dump all items in +showbudget_texture_global in a text form", 0 );
private:
vgui::Label *m_pModeLabel;
int m_LastCounterGroup;
int m_MaxValue;
int m_SumOfValues;
};
#endif // VPROF_ENABLED
#endif // VGUI_TEXTUREBUDGETPANEL_H
|