Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Aug 30, 2009, 2:22:00 AM (15 years ago)
Author:
rgrieder
Message:

Merged resource2 branch back to trunk.

IMPORTANT NOTE:
Upon this merge you need to specifically call your data directory "data_extern" when checking it out (when you don't provide a name, it will be just called 'trunk').
The new CMake variable is EXTERNAL_DATA_DIRECTORY. DATA_DIRECTORY now points to the one the source part of the repository.
UPDATE YOUR DATA DIRECTORY AS WELL!!!

Location:
code/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/trunk

  • code/trunk/src/core/GraphicsManager.h

    r3370 r5695  
    4242#include <string>
    4343#include <OgreLog.h>
     44#include <boost/scoped_ptr.hpp>
     45#include <boost/shared_ptr.hpp>
     46
    4447#include "util/Singleton.h"
    4548#include "OrxonoxClass.h"
     
    5558        friend class Singleton<GraphicsManager>;
    5659    public:
    57         GraphicsManager();
     60        GraphicsManager(bool bLoadRenderer = true);
    5861        ~GraphicsManager();
    5962
     
    6265        void update(const Clock& time);
    6366
    64         inline Ogre::Viewport* getViewport()
    65             { return this->viewport_; }
    66         inline Ogre::RenderWindow* getRenderWindow()
    67             { return this->renderWindow_; }
     67        Ogre::Viewport* getViewport()         { return this->viewport_; }
     68        Ogre::RenderWindow* getRenderWindow() { return this->renderWindow_; }
     69        size_t getRenderWindowHandle();
     70        bool isFullScreen() const;
     71
     72        void upgradeToGraphics();
     73        bool rendererLoaded() const { return renderWindow_ != NULL; }
    6874
    6975        void setCamera(Ogre::Camera* camera);
     
    7379
    7480        // OGRE initialisation
    75         void setupOgre();
     81        void loadOgreRoot();
    7682        void loadOgrePlugins();
    77         void declareResources();
    7883        void loadRenderer();
    79         void initialiseResources();
    8084
    8185        // event from Ogre::LogListener
     
    8690        void printScreen();
    8791
    88     private:
    89         Ogre::Root*         ogreRoot_;                 //!< Ogre's root
    90         Ogre::LogManager*   ogreLogger_;
     92        scoped_ptr<OgreWindowEventListener> ogreWindowEventListener_; //!< Pimpl to hide OgreWindowUtilities.h
     93#if OGRE_VERSION < 0x010600
     94        scoped_ptr<MemoryArchiveFactory>    memoryArchiveFactory_;    //!< Stores the modified particle scripts
     95#endif
     96        scoped_ptr<Ogre::LogManager>        ogreLogger_;
     97        scoped_ptr<Ogre::Root>              ogreRoot_;                //!< Ogre's root
    9198        Ogre::RenderWindow* renderWindow_;             //!< the one and only render window
    9299        Ogre::Viewport*     viewport_;                 //!< default full size viewport
    93         OgreWindowEventListener* ogreWindowEventListener_; //!< Pimpl to hide OgreWindowUtilities.h
     100
     101        // XML files for the resources
     102        shared_ptr<XMLFile> resources_;                //!< XML with resource locations
     103        shared_ptr<XMLFile> extResources_;             //!< XML with resource locations in the external path (only for dev runs)
    94104
    95105        // config values
    96         std::string         resourceFile_;             //!< resources file name
    97106        std::string         ogreConfigFile_;           //!< ogre config file name
    98         std::string         ogrePluginsFolder_;        //!< Folder where the Ogre plugins are located
     107        std::string         ogrePluginsDirectory_;     //!< Directory where the Ogre plugins are located
    99108        std::string         ogrePlugins_;              //!< Comma separated list of all plugins to load
    100109        std::string         ogreLogFile_;              //!< log file name for Ogre log messages
Note: See TracChangeset for help on using the changeset viewer.