1 // NeL - MMORPG Framework <http://dev.ryzom.com/projects/nel/>
2 // Copyright (C) 2010 Winch Gate Property Limited
4 // This program is free software: you can redistribute it and/or modify
5 // it under the terms of the GNU Affero General Public License as
6 // published by the Free Software Foundation, either version 3 of the
7 // License, or (at your option) any later version.
9 // This program is distributed in the hope that it will be useful,
10 // but WITHOUT ANY WARRANTY; without even the implied warranty of
11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 // GNU Affero General Public License for more details.
14 // You should have received a copy of the GNU Affero General Public License
15 // along with this program. If not, see <http://www.gnu.org/licenses/>.
27 #include <nel/misc/rgba.h>
28 #include <nel/misc/time_nl.h>
40 float X
, Y
, Width
, Height
;
41 NLMISC::CRGBA BackColor
;
45 std::deque
<float> Values
;
47 NLMISC::TTime Quantum
;
49 NLMISC::TTime CurrentQuantumStart
;
51 CGraph (std::string name
, float x
, float y
, float width
, float height
, NLMISC::CRGBA backColor
, NLMISC::TTime quantum
, float maxValue
)
52 : Name(name
), X(x
), Y(y
), Width(width
), Height(height
), BackColor(backColor
), MaxValue(maxValue
),
53 Peak(0.0f
), Quantum(quantum
), CurrentQuantumStart(NLMISC::CTime::getLocalTime())
58 void addOneValue (float value
= 0.0f
);
59 void addValue (float value
);
66 extern CGraph FpsGraph
;
67 extern CGraph SpfGraph
;
68 extern CGraph DownloadGraph
;
69 extern CGraph UploadGraph
;
79 } /* namespace SBCLIENT */