Ogre 游戏中初始化 CEGUI
2010-11-21 19:42
337 查看
1, 在类中添加 成员变量 CEGUI::OgreRenderer *mRenderer;
2,构造函数中初始化 mRenderer=0;
3,在setup()函数里调用 initCEGUI();
void Game::initCEGUI()
{
mRenderer = &CEGUI::OgreRenderer::bootstrapSystem();
}
。
booststrpSystem()函数的功能:
Convenience function that creates all the Ogre specific objects and then initialises the CEGUI system with them.
The created Renderer will use the default Ogre rendering window as the default output surface.
This will create and initialise the following objects for you:
- CEGUI::OgreRenderer
- CEGUI::OgreResourceProvider
- CEGUI::OgreImageCodec
- CEGUI::System
2,构造函数中初始化 mRenderer=0;
3,在setup()函数里调用 initCEGUI();
void Game::initCEGUI()
{
mRenderer = &CEGUI::OgreRenderer::bootstrapSystem();
}
。
booststrpSystem()函数的功能:
Convenience function that creates all the Ogre specific objects and then initialises the CEGUI system with them.
The created Renderer will use the default Ogre rendering window as the default output surface.
This will create and initialise the following objects for you:
- CEGUI::OgreRenderer
- CEGUI::OgreResourceProvider
- CEGUI::OgreImageCodec
- CEGUI::System
相关文章推荐
- OGRE+CEGUI游戏教程(1)----GUI框架
- OGRE+CEGUI游戏教程(2)----NPC对话演示
- OGRE+CEGUI游戏教程(3)----角色创建
- OGRE+CEGUI游戏教程(4)----游戏逻辑脚本
- OGRE+CEGUI游戏教程(5)--物品/装备和技能系统
- OGRE+CEGUI游戏教程(1)----GUI框架
- OGRE+CEGUI游戏教程(2)----NPC对话演示
- OGRE+CEGUI游戏教程(3)----角色创建
- OGRE+CEGUI游戏教程(1)----GUI框架
- OGRE+CEGUI游戏教程(4)----游戏逻辑脚本
- OGRE+CEGUI游戏教程(2)----NPC对话演示
- OGRE+CEGUI游戏教程(5)--物品/装备和技能系统
- OGRE+CEGUI游戏教程(3)----角色创建
- OGRE+CEGUI游戏教程(4)----游戏逻辑脚本
- OGRE+CEGUI游戏教程(5)--物品/装备和技能系统
- Ogre1.7下配置CEGUI0.7.1
- 《Ogre 3D 游戏开发框架指南》配套光盘的一个小瑕疵
- 游戏引擎中的多渲染器的设计与实现(1)--OGRE
- 初始化游戏状态数据(3)
- Ogre游戏引擎鼠标选取物体演示