05 2012 档案
摘要:View Code 1 /* Basic Ogre life cycle: 2 * 1. Create Root Object. 3 * 2. Define the resources that Ogre will use. 4 * 3. Choose and setup the RenderSystem. 5 * 4. Create the RenderWindow. 6 * 5. Initialise the resources that you are going to use. 7 * 6. Create a scene using those resources. 8 ...
阅读全文
摘要:View Code 1 /* 使用OGRE默认的资源文件语法分析器得到所有的资源 */ 2 mResourceCfg = "plugins_d.cfg"; 3 Ogre::ConfigFile cf; 4 cf.load(mResourceCfg); 5 6 Ogre::ConfigFile::SectionInterator seci; 7 seci = cf.getSectionInterator(); 8 Ogre::ConfigFile::SettingsMultiMap *settings; 9 Ogre::ConfigFile::SettingsMultiMa.
阅读全文
摘要:View Code 1 void main() 2 { 3 init(); //引脚初始化 4 bark(); //响一下,提示用户 5 welcome(); //欢迎 6 7 while(1) 8 { 9 prompt(); //命令提示符 10 11 //接收一条命令 12 getcommand(rbuf, sizeof(rbuf)); 13 14 ...
阅读全文