OSG计时器与时间戳

static osg::Timer* sendMsgTimer = new osg::Timer;
if (sendMsgTimer->time_m()>100)//100ms
{
// do what you want
sendMsgTimer->setStartTick();//重置
}

 

osg::NodeVisitor* nv

nv->getFrameStamp()->getReferenceTime();

posted @ 2016-12-22 13:02  酷熊  阅读(1400)  评论(0编辑  收藏  举报