|
发表于 2009-11-9 14:58:00
|
显示全部楼层
Re:OGRE怎么去掉左下方和右下方自带显示图片
ExampleApplication.h 中 ExampleApplication类:
去掉配置窗口:
virtual bool configure(void)
{
// Show the configuration dialog and initialise the system
// You can skip this and use root.restoreConfig() to load configuration
// settings if you were sure there are valid ones saved in ogre.cfg
if(mRoot->showConfigDialog())
{
// If returned true, user clicked OK so initialise
// Here we choose to let the system create a default rendering window by passing 'true'
mWindow = mRoot->initialise(true);
return true;
}
else
{
return false;
}
}
将此函数中showConfigDialog函数调用注释掉即可。
去掉Ogre中调试信息窗口:
virtual void createFrameListener(void)
{
mFrameListener= new ExampleFrameListener(mWindow, mCamera);
mFrameListener->showDebugOverlay(true);
mRoot->addFrameListener(mFrameListener);
}
这个函数内将 showDebugOverlay 函数注释掉即可。
回答完毕,继续干活。 |
|