Using libRocket with Advanced Ogre Framework

Help with integrating libRocket into your engine and game

Using libRocket with Advanced Ogre Framework

Postby elfinitiy on Tue Jun 25, 2013 7:41 pm

When trying to integrate the two I did the following
Code: Select all
class OgreFramework : public Ogre::Singleton<OgreFramework>, OIS::KeyListener,
   OIS::MouseListener,Rocket::Core::SystemInterface, Rocket::Core::RenderInterface

And copied the codes from the OgreSample.
But it just won't render, not even show the debug icon.
Code: Select all
this->_context = Rocket::Core::CreateContext( "GameStateContext",
      OgreFramework::getSingletonPtr()->m_pViewport->getActualHeight() ) );
   if( this->_context == NULL)
       OgreFramework::getSingletonPtr()->m_pLog->logMessage("not created -_- ");

   Rocket::Core::ElementDocument* cursor = this->_context->LoadMouseCursor("cursor.rml");
   if (cursor)

   Rocket::Debugger::Initialise( this->_context );
   Rocket::Debugger::SetVisible( true );
   Rocket::Core::ElementDocument *dt = this->_context->LoadDocument( "./demo.rml ");
   if( dt != NULL )

There are no errors here, and it says "Successfully loaded textures" but the screen is empty.
Is it because I'm using Ogre 1.9 ?
Posts: 1
Joined: Tue Jun 25, 2013 7:36 pm

Return to Engine Integration