Can CEGUI 0.75 be used in OGRE 1.60?
Moderators: CEGUI MVP, CEGUI Team
- ___MoonDance
- Just popping in
- Posts: 6
- Joined: Thu Jan 13, 2011 03:57
- Location: Wuhan/China
Can CEGUI 0.75 be used in OGRE 1.60?
When the program run,CEGUI::OgreRenderer::bootstrapSystem() get an error.Can CEGUI 0.75 be used in OGRE 1.60?
Re: Can CEGUI 0.75 be used in OGRE 1.60?
If you are using the precompiled SDK then definitely no. If you are compiling yourself, you are likely to run into compiler errors. I think it can be used with Ogre 1.6 but it might require slight changes.
- ___MoonDance
- Just popping in
- Posts: 6
- Joined: Thu Jan 13, 2011 03:57
- Location: Wuhan/China
Re: Can CEGUI 0.75 be used in OGRE 1.60?
Kulik wrote:If you are using the precompiled SDK then definitely no. If you are compiling yourself, you are likely to run into compiler errors. I think it can be used with Ogre 1.6 but it might require slight changes.
thanks for your help! There are no compiler errors.but I get runtime error when step into bootstrapSystem().
Re: Can CEGUI 0.75 be used in OGRE 1.60?
perhaps posting the error would help..
or you could wait till a psychic gets here, which could take a while...
or you could wait till a psychic gets here, which could take a while...
- ___MoonDance
- Just popping in
- Posts: 6
- Joined: Thu Jan 13, 2011 03:57
- Location: Wuhan/China
Re: Can CEGUI 0.75 be used in OGRE 1.60?
Kulik wrote:perhaps posting the error would help..
or you could wait till a psychic gets here, which could take a while...
you are so humorous.The code is on my office PC,I will post the error later.thanks for your help!
Re: Can CEGUI 0.75 be used in OGRE 1.60?
We even say that we are not psychic in the forum guidelines, yet people just assume we are. The reasons for this are unknown to me because I know many developers and not one of them is psychic...
- ___MoonDance
- Just popping in
- Posts: 6
- Joined: Thu Jan 13, 2011 03:57
- Location: Wuhan/China
Re: Can CEGUI 0.75 be used in OGRE 1.60?
Kulik wrote:We even say that we are not psychic in the forum guidelines, yet people just assume we are. The reasons for this are unknown to me because I know many developers and not one of them is psychic...
Code: Select all
OgreRenderer::OgreRenderer() :
d_pimpl(new OgreRenderer_impl())
{
checkOgreInitialised();
// get auto created window
[color=#FF0000]Ogre::RenderWindow* rwnd = d_pimpl->d_ogreRoot->getAutoCreatedWindow();[/color]
if (!rwnd)
CEGUI_THROW(RendererException(
"Ogre was not initialised to automatically create a window, you "
"should therefore be explicitly specifying a Ogre::RenderTarget in "
"the OgreRenderer::create function."));
constructor_impl(*rwnd);
}
Ogre::RenderWindow* rwnd = d_pimpl->d_ogreRoot->getAutoCreatedWindow()
Hi,I'm back.I have found the problem. when I step into bootstrapSystem(),every time the RenderWindow pointer rwnd is NULL.
And there is an overload function bootstrapSystem(RendererTarget &target);
Should I pass a RenderWindow parameter?
- CrazyEddie
- CEGUI Project Lead
- Posts: 6760
- Joined: Wed Jan 12, 2005 12:06
- Location: England
- Contact:
Re: Can CEGUI 0.75 be used in OGRE 1.60?
___MoonDance wrote:Should I pass a RenderWindow parameter?
Yeah, if you're not using an automatically created Ogre:RenderWindow, you need to pass a reference to some kind of Ogre::RenderTarget - such as a Ogre::RenderWIndow you created yourself.
CE.
Useful Links: Forum Guidelines | Documentation | Tutorials | HOWTO | Videos | Donate to CEGUI | CEGUI Twitter
- ___MoonDance
- Just popping in
- Posts: 6
- Joined: Thu Jan 13, 2011 03:57
- Location: Wuhan/China
Re: Can CEGUI 0.75 be used in OGRE 1.60?
CrazyEddie wrote:___MoonDance wrote:Should I pass a RenderWindow parameter?
Yeah, if you're not using an automatically created Ogre:RenderWindow, you need to pass a reference to some kind of Ogre::RenderTarget - such as a Ogre::RenderWIndow you created yourself.
CE.
,Thanks a lot. The problem has been solved. Now I can use CEGUI 0.75 in OGRE 1.60 . Next time I will remember to post the log.
Who is online
Users browsing this forum: No registered users and 3 guests