Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Oct 8, 2009, 10:56:29 PM (15 years ago)
Author:
rgrieder
Message:

Fixed CameraManager issue with the fallback scene by assigning each Scene a CameraManager directly.
Use this→getScene()→getCameraManager() to get the camera manager.

Location:
code/branches/core5/src/libraries/core
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/branches/core5/src/libraries/core/GUIManager.cc

    r5855 r5911  
    101101        : renderWindow_(renderWindow)
    102102        , resourceProvider_(0)
     103        , camera_(NULL)
    103104    {
    104105        using namespace CEGUI;
     
    174175    void GUIManager::setCamera(Ogre::Camera* camera)
    175176    {
     177        this->camera_ = camera;
    176178        if (camera == NULL)
    177179            this->guiRenderer_->setTargetSceneManager(0);
  • code/branches/core5/src/libraries/core/GUIManager.h

    r5738 r5911  
    7171
    7272        void setCamera(Ogre::Camera* camera);
     73        Ogre::Camera* getCamera() { return this->camera_; }
    7374
    7475        static GUIManager* getInstancePtr() { return singletonPtr_s; }
     
    101102        CEGUI::Logger*                       ceguiLogger_;      //!< CEGUI's logger to be able to log CEGUI errors in our log
    102103        std::map<std::string, PlayerInfo*>   players_;          //!< Stores the player (owner) for each gui
     104        Ogre::Camera*                        camera_;           //!< Camera used to render the scene with the GUI
    103105
    104106        static GUIManager*                   singletonPtr_s;    //!< Singleton reference to GUIManager
Note: See TracChangeset for help on using the changeset viewer.