- Timestamp:
- 07/10/08 11:02:46 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/App/Demos/Vis/FriendlyCulling/src/PerformanceGraph.cpp
r2827 r2828 6 6 mMaxData(maxData), mCurrentIdx(0) 7 7 { 8 mGraphColor[0] = 1.0f; 9 mGraphColor[1] = 0.0f; 10 mGraphColor[2] = 0.0f; 8 11 } 9 12 … … 88 91 const float scaley = 1.0f / 50.0f; 89 92 90 glColor 4f(1.0f, 0, 0, 1.0f);93 glColor3fv(mGraphColor); 91 94 92 95 glBegin(GL_LINE_STRIP); 93 94 //OUT1("data: " << mData.size());95 96 96 97 for (size_t i = 0; i < mData.size(); ++ i) … … 128 129 mData.clear(); 129 130 } 131 132 133 void PerformanceGraph::SetGraphColor(float *col) 134 { 135 mGraphColor[0] = col[0]; 136 mGraphColor[1] = col[1]; 137 mGraphColor[2] = col[2]; 138 }
Note: See TracChangeset
for help on using the changeset viewer.