C++学习(三一三)EventQueue创建时机
Posted hankern
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了C++学习(三一三)EventQueue创建时机相关的知识,希望对你有一定的参考价值。
osgGA::EventQueue
在osgViewer::View创建时创建。
osgViewer/View.cpp
View::View():
_fusionDistanceMode(osgUtil::SceneView::PROPORTIONAL_TO_SCREEN_DISTANCE),
_fusionDistanceValue(1.0f)
{
// OSG_NOTICE<<"Constructing osgViewer::View"<<std::endl;
_startTick = 0;
_frameStamp = new osg::FrameStamp;
_frameStamp->setFrameNumber(0);
_frameStamp->setReferenceTime(0);
_frameStamp->setSimulationTime(0);
_scene = new Scene;
// make sure View is safe to reference multi-threaded.
setThreadSafeRefUnref(true);
// need to attach a Renderer to the master camera which has been default constructed
getCamera()->setRenderer(createRenderer(getCamera()));
setEventQueue(new osgGA::EventQueue);
setStats(new osg::Stats("View"));
}
以上是关于C++学习(三一三)EventQueue创建时机的主要内容,如果未能解决你的问题,请参考以下文章
C++学习(三一二)glVertexAttribPointer和glVertexAttrib*的关系
C++学习(三一零)glEnableVertexAttribArray和glVertexAttribPointer的顺序关系