Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Feb 21, 2018, 12:03:52 AM (6 years ago)
Author:
landauf
Message:

merged ogre1.9 (including cegui0.8) into new branch

Location:
code/branches/cegui0.8_ogre1.9
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • code/branches/cegui0.8_ogre1.9

  • code/branches/cegui0.8_ogre1.9/src/libraries/core/CMakeLists.txt

    r11712 r11795  
    9595  LINK_LIBRARIES
    9696    ${OGRE_LIBRARY}
     97    ${OGRE_OVERLAY_LIBRARY}
    9798    ${Boost_FILESYSTEM_LIBRARY}
    9899    ${Boost_SYSTEM_LIBRARY} # Filesystem dependency
  • code/branches/cegui0.8_ogre1.9/src/libraries/core/GUIManager.cc

    r11117 r11795  
    482482        assert(guiSystem_);
    483483        this->protectedCeguiSystemCall(std::bind(&CEGUI::System::injectTimePulse, arg::_1, time.getDeltaTime()));
     484#if CEGUI_VERSION >= 0x000800
     485        this->protectedCeguiContextCall(std::bind(&CEGUI::GUIContext::injectTimePulse, arg::_1, time.getDeltaTime()));
     486#endif
    484487    }
    485488
     
    664667            this->setBackgroundImage("");
    665668        else
    666             this->setBackgroundImage("set: " + imageSet + " image: " + imageName);
     669            this->setBackgroundImage(imageSet + "/" + imageName);
    667670    }
    668671
     
    846849    bool GUIManager::protectedCeguiContextCall(FunctionType function)
    847850    {
    848         return this->protectedCall(function, this->guiSystem_->getDefaultGUIContext());
     851        return this->protectedCall(function, &this->guiSystem_->getDefaultGUIContext());
    849852    }
    850853#endif
  • code/branches/cegui0.8_ogre1.9/src/libraries/core/GraphicsManager.cc

    r11115 r11795  
    4545#include <OgreViewport.h>
    4646#include <OgreWindowEventUtilities.h>
     47#if OGRE_VERSION >= 0x010900
     48#   include <Overlay/OgreOverlaySystem.h>
     49#endif
    4750
    4851#include "SpecialConfig.h"
     
    115118        this->loadOgreRoot();
    116119
     120#if OGRE_VERSION >= 0x010900
     121        this->overlaySystem_ = new Ogre::OverlaySystem();
     122#else
     123        this->overlaySystem_ = nullptr;
     124#endif
     125
    117126        // At first, add the root paths of the data directories as resource locations
    118127        Ogre::ResourceGroupManager::getSingleton().addResourceLocation(ConfigurablePaths::getDataPathString(), "FileSystem");
     
    155164        Loader::getInstance().unload(extResources_.get());
    156165
     166#if OGRE_VERSION >= 0x010900
     167        safeObjectDelete(&overlaySystem_);
     168#endif
    157169        safeObjectDelete(&ogreRoot_);
    158170        safeObjectDelete(&ogreLogger_);
  • code/branches/cegui0.8_ogre1.9/src/libraries/core/GraphicsManager.h

    r11085 r11795  
    5252
    5353#include "util/DestructionHelper.h"
     54#include "util/OgreForwardRefs.h"
    5455#include "util/Singleton.h"
    5556#include "config/Configurable.h"
     
    7980        void postUpdate(const Clock& time);
    8081
    81         Ogre::Viewport* getViewport()         { return this->viewport_; }
    82         Ogre::RenderWindow* getRenderWindow() { return this->renderWindow_; }
     82        Ogre::Viewport* getViewport()           { return this->viewport_; }
     83        Ogre::RenderWindow* getRenderWindow()   { return this->renderWindow_; }
     84        Ogre::OverlaySystem* getOverlaySystem() { return this->overlaySystem_; }
    8385        size_t getRenderWindowHandle();
    8486
     
    129131        Ogre::RenderWindow*      renderWindow_;            //!< the one and only render window
    130132        Ogre::Viewport*          viewport_;                //!< default full size viewport
     133        Ogre::OverlaySystem*     overlaySystem_;
    131134        GlowMaterialListener*    glowMaterialListener_;    //!< Material Listener for the 'Glow' compositor
    132135        float                    lastFrameStartTime_;      //!< Time stamp of the beginning of the last frame
  • code/branches/cegui0.8_ogre1.9/src/libraries/util/DisplayStringConversions.h

    r11071 r11795  
    3737
    3838#include "UtilPrereqs.h"
    39 #include <OgreOverlayElement.h>
     39#include <OgrePrerequisites.h>
     40#if OGRE_VERSION >= 0x010900
     41#   include <Overlay/OgreOverlayElement.h>
     42#else
     43#   include <OgreOverlayElement.h>
     44#endif
    4045
    4146#if OGRE_UNICODE_SUPPORT
  • code/branches/cegui0.8_ogre1.9/src/libraries/util/OgreForwardRefs.h

    r7168 r11795  
    6767    class Factory;
    6868    class Font;
    69     class FontPtr;
    7069    class FontManager;
    7170    struct FrameEvent;
     
    7372    class Frustum;
    7473    class GpuProgram;
    75     class GpuProgramPtr;
    7674    class GpuProgramManager;
    7775    class GpuProgramUsage;
     
    8280    class HardwarePixelBufferSharedPtr;
    8381    class HighLevelGpuProgram;
    84     class HighLevelGpuProgramPtr;
    8582    class HighLevelGpuProgramManager;
    8683    class HighLevelGpuProgramFactory;
     
    9693    class ManualObject;
    9794    class Material;
    98     class MaterialPtr;
    9995    class MaterialManager;
    10096    class MaterialScriptCompiler;
     
    104100    class MemoryManager;
    105101    class Mesh;
    106     class MeshPtr;
    107102    class MeshSerializer;
    108103    class MeshSerializerImpl;
     
    120115    class OverlayElementFactory;
    121116    class OverlayManager;
     117    class OverlaySystem;
    122118    class Particle;
    123119    class ParticleAffector;
     
    179175    class SimpleSpline;
    180176    class Skeleton;
    181     class SkeletonPtr;
    182177    class SkeletonInstance;
    183178    class SkeletonManager;
     
    195190    class TextureUnitState;
    196191    class Texture;
    197     class TexturePtr;
    198192    class TextureFont;
    199193    class TextureManager;
Note: See TracChangeset for help on using the changeset viewer.