您的位置:首页 > 产品设计 > UI/UE

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
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: