Changeset 5695 for code/trunk/src/core/GraphicsManager.h
- Timestamp:
- Aug 30, 2009, 2:22:00 AM (16 years ago)
- Location:
- code/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk
- Property svn:mergeinfo changed
/code/branches/resource2 (added) merged: 3373-3374,5594,5597,5610-5611,5614,5624,5641,5644-5646,5650-5664,5667-5672,5682-5684,5688-5691,5694
- Property svn:mergeinfo changed
-
code/trunk/src/core/GraphicsManager.h
r3370 r5695 42 42 #include <string> 43 43 #include <OgreLog.h> 44 #include <boost/scoped_ptr.hpp> 45 #include <boost/shared_ptr.hpp> 46 44 47 #include "util/Singleton.h" 45 48 #include "OrxonoxClass.h" … … 55 58 friend class Singleton<GraphicsManager>; 56 59 public: 57 GraphicsManager( );60 GraphicsManager(bool bLoadRenderer = true); 58 61 ~GraphicsManager(); 59 62 … … 62 65 void update(const Clock& time); 63 66 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; } 68 74 69 75 void setCamera(Ogre::Camera* camera); … … 73 79 74 80 // OGRE initialisation 75 void setupOgre();81 void loadOgreRoot(); 76 82 void loadOgrePlugins(); 77 void declareResources();78 83 void loadRenderer(); 79 void initialiseResources();80 84 81 85 // event from Ogre::LogListener … … 86 90 void printScreen(); 87 91 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 91 98 Ogre::RenderWindow* renderWindow_; //!< the one and only render window 92 99 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) 94 104 95 105 // config values 96 std::string resourceFile_; //!< resources file name97 106 std::string ogreConfigFile_; //!< ogre config file name 98 std::string ogrePlugins Folder_; //!< Folderwhere the Ogre plugins are located107 std::string ogrePluginsDirectory_; //!< Directory where the Ogre plugins are located 99 108 std::string ogrePlugins_; //!< Comma separated list of all plugins to load 100 109 std::string ogreLogFile_; //!< log file name for Ogre log messages
Note: See TracChangeset
for help on using the changeset viewer.