Show
Ignore:
Timestamp:
12/22/10 21:11:05 (4 years ago)
Author:
robert
Message:

Converted FrameStamp::g/setFrameNumber from int to uint

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • OpenSceneGraph/trunk/examples/osguserstats/osguserstats.cpp

    r11931 r12056  
    8888        // rendering yet (in multithreaded viewer modes). So we'll use the 
    8989        // timings for framenumber-2 for this demo. 
    90         int framenumber = viewer.getFrameStamp()->getFrameNumber(); 
     90        unsigned int framenumber = viewer.getFrameStamp()->getFrameNumber(); 
    9191 
    9292        // Get the update time and the viewer main camera's cull time. We use  
     
    132132    osg::Timer_t tick = osg::Timer::instance()->tick(); 
    133133    double currentTime = osg::Timer::instance()->delta_s(viewer.getStartTick(), tick); 
    134     int framenumber = viewer.getFrameStamp()->getFrameNumber(); 
     134    unsigned int framenumber = viewer.getFrameStamp()->getFrameNumber(); 
    135135 
    136136    viewer.getViewerStats()->setAttribute(framenumber, name + " begin", currentTime); 
     
    143143    osg::Timer_t tick = osg::Timer::instance()->tick(); 
    144144    double currentTime = osg::Timer::instance()->delta_s(viewer.getStartTick(), tick); 
    145     int framenumber = viewer.getFrameStamp()->getFrameNumber(); 
     145    unsigned int framenumber = viewer.getFrameStamp()->getFrameNumber(); 
    146146 
    147147    viewer.getViewerStats()->setAttribute(framenumber, name + " end", currentTime);