.overlay

1,在引用.overlay文件中的定義的layout 或者 layoutElement的時候要注意大小寫。

2, //   註釋難道要寫在空行裏

初始化.overlay文件失敗時,要注意在調用initialiseAllResourceGroups()的位置,是否在setDefaultNumMipmaps()的後面

Before we initialize the resources, we should also set the default number of mipmaps that textures use. We must set that before we initialize the resources for it to have any effect.

Add the following code to BasicTutorial6::go:

// Set default mipmap level (NB some APIs ignore this)
Ogre::TextureManager::getSingleton().setDefaultNumMipmaps(5);
// initialise all resource groups
Ogre::ResourceGroupManager::getSingleton().initialiseAllResourceGroups();

The application now has all resource groups initialized and ready to be used.

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章