- Timestamp:
- 12/11/08 02:32:29 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/App/Demos/Vis/FriendlyCulling/src/StatsWriter.h
r3221 r3223 12 12 struct FrameStats 13 13 { 14 FrameStats() {} 14 FrameStats(): 15 mFrame(0), mFPS(0), mTime(.0f), mNodes(0), mTriangles(0), mObjects(0) 16 {} 17 18 15 19 FrameStats(int frame, int fps, float time, int nodes, int triangles, int objects): 16 20 mFrame(frame), mFPS(fps), mTime(time), mNodes(nodes), mTriangles(triangles), mObjects(objects) 17 21 {} 18 22 23 24 friend std::ostream& operator<< (std::ostream &s, const FrameStats &A); 19 25 20 26 … … 27 33 int mTriangles; 28 34 int mObjects; 29 30 31 friend std::ostream& operator<< (std::ostream &s, const FrameStats &A);32 35 }; 33 36 … … 38 41 s << "#FRAME" << "\n" << A.mFrame << std::endl; 39 42 s << "#FPS" << "\n" << A.mFPS << std::endl; 40 s << " TIME" << "\n" << A.mTime << std::endl;43 s << "#TIME" << "\n" << A.mTime << std::endl; 41 44 s << "#NODES" << "\n" << A.mNodes << std::endl; 42 45 s << "#TRIANGLES" << "\n" << A.mTriangles << std::endl; 43 46 s << "#OBJECTS" << "\n" << A.mObjects << std::endl; 47 48 return s; 44 49 } 45 50
Note: See TracChangeset
for help on using the changeset viewer.