source: GTP/trunk/App/Demos/Vis/FriendlyCulling/src/PerformanceGraph.h @ 2827

Revision 2827, 455 bytes checked in by mattausch, 16 years ago (diff)
Line 
1#ifndef _PERFORMANCEGRAPH_H
2#define _PERFORMANCEGRAPH_H
3
4#include <vector>
5
6/** Class for drawing a performance graph into the render window
7*/
8class PerformanceGraph
9{
10public:
11       
12        PerformanceGraph(const int maxData);
13
14        void Draw();
15
16        void AddData(float data);
17
18        void Reset();
19
20
21protected:
22
23        void DrawGrid();
24        void DrawBackGround();
25        void DrawCurve();
26
27        std::vector<float> mData;
28
29        int mMaxData;
30        int mCurrentIdx;
31};
32
33#endif
Note: See TracBrowser for help on using the repository browser.