Problems with OVERLAY by OGRE

1

I have problems making use of OGRE overlays:

playState.h :

 #include <OgreOverlaySystem.h>
    #include <OgreOverlayElement.h>
    #include <OgreOverlayManager.h>
    #include <OgreFontManager.h>
    #include <OgreTextAreaOverlayElement.h>

    using namespace Ogre;

    Ogre::OverlayManager* _overlayManager;
    void createOverlay(); //Definicion de la funcion

playState.cpp

void PlayState::createOverlay() {
      Overlay *pMyOverlayLogo = (Overlay*) OverlayManager::getSingleton().getByName("Info");
      pMyOverlayLogo->show();
}

I do not understand why it explodes when I do the last line:

pMyOverlayLogo->show();

Could you show me an example of using Overlay?

    
asked by Strelok 12.05.2017 в 19:02
source

0 answers