ogre-next 流程图
从流程分析的结果看,ogre2.x的流程划分比ogre1.x更好,函数功能更加明确。
大致功能并没有改变,毕竟还是姐妹篇。
所以,简单的分析过后就可以不用再深入细节了。
update被分的很细,有了很大的进步。good。
resources.cfg 改为 resources2.cfg
与 resources.cfg不同的是,多了
# Do not load this as a resource. It's here merely to tell the code where
# the Hlms templates are located
[Hlms]
DoNotUseAsResource=D:/Documents/ogre/ogre-next/Samples/Media
然后它又特殊说明:不要将其作为资源加载。这里只是告诉代码Hlms模板的位置。
在loadResources时不再使用 resources.cfg,而是使用resources2.cfg,
locateResouces改为 setupResources
在loadResources时先注册 hlms
registerHlms();
loadHlmsDiskCache();
从项目解决方案中也有多个 hlms,这个ogre2.x新的东西,
HLMS stands for "High Level Material System"
HLMS高等级材质系统。
那接下来就分析HLMS。