Ignore:
Timestamp:
12/11/08 02:32:29 (16 years ago)
Author:
mattausch
Message:

worked on stats

File:
1 edited

Legend:

Unmodified
Added
Removed
  • GTP/trunk/App/Demos/Vis/FriendlyCulling/src/StatsWriter.h

    r3221 r3223  
    1212struct FrameStats 
    1313{ 
    14         FrameStats() {} 
     14        FrameStats(): 
     15        mFrame(0), mFPS(0), mTime(.0f), mNodes(0), mTriangles(0), mObjects(0) 
     16        {} 
     17 
     18 
    1519        FrameStats(int frame, int fps, float time, int nodes, int triangles, int objects): 
    1620        mFrame(frame), mFPS(fps), mTime(time), mNodes(nodes), mTriangles(triangles), mObjects(objects) 
    1721        {} 
    1822 
     23 
     24        friend std::ostream& operator<< (std::ostream &s, const FrameStats &A); 
    1925 
    2026 
     
    2733        int mTriangles; 
    2834        int mObjects; 
    29  
    30  
    31         friend std::ostream& operator<< (std::ostream &s, const FrameStats &A); 
    3235}; 
    3336 
     
    3841        s << "#FRAME" << "\n" << A.mFrame << std::endl; 
    3942        s << "#FPS" << "\n" << A.mFPS << std::endl; 
    40         s << "TIME" << "\n" << A.mTime << std::endl; 
     43        s << "#TIME" << "\n" << A.mTime << std::endl; 
    4144        s << "#NODES" << "\n" << A.mNodes << std::endl; 
    4245        s << "#TRIANGLES" << "\n" << A.mTriangles << std::endl; 
    4346        s << "#OBJECTS" << "\n" << A.mObjects << std::endl; 
     47 
     48        return s; 
    4449} 
    4550 
Note: See TracChangeset for help on using the changeset viewer.