#ifndef _PERFORMANCEGRAPH_H #define _PERFORMANCEGRAPH_H #include /** Class for drawing a performance graph into the render window */ class PerformanceGraph { public: PerformanceGraph(const int maxData); void Draw(); void AddData(float data); void Reset(); void SetGraphColor(float *col); protected: void DrawGrid(); void DrawBackGround(); void DrawCurve(); std::vector mData; int mMaxData; int mCurrentIdx; float mGraphColor[3]; }; #endif