.overlay

来源:互联网 发布:spring源码怎么看 编辑:程序博客网 时间:2024/05/01 17:21

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 groupsOgre::ResourceGroupManager::getSingleton().initialiseAllResourceGroups();

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

 

原创粉丝点击