Changeset 5657 for code/branches/resource2/src/core
- Timestamp:
- Aug 17, 2009, 9:12:54 PM (15 years ago)
- Location:
- code/branches/resource2/src/core
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/resource2/src/core/GraphicsManager.cc
r5654 r5657 160 160 this->loadRenderer(); 161 161 162 // RESOURCE MANAGEMENT 163 164 // Load graphical resources 165 resourcesGraphics_.reset(new XMLFile("resources_graphics.oxr", "dataRoot")); 166 Loader::open(resourcesGraphics_.get()); 167 168 // Consider external data folder for dev runs 169 if (Core::isDevelopmentRun()) 170 { 171 extResourcesGraphics_.reset(new XMLFile("resources_graphics.oxr", "externalDataRoot")); 172 Loader::open(extResourcesGraphics_.get()); 173 } 174 175 // Initialise all resources 162 // Initialise all resources (do this AFTER the renderer has been loaded!) 176 163 // Note: You can only do this once! Ogre will check whether a resource group has 177 164 // already been initialised. If you need to load resources later, you will have to -
code/branches/resource2/src/core/GraphicsManager.h
r5654 r5657 97 97 shared_ptr<XMLFile> resources_; //!< XML with resource locations 98 98 shared_ptr<XMLFile> extResources_; //!< XML with resource locations in the external path (only for dev runs) 99 shared_ptr<XMLFile> resourcesGraphics_; //!< XML with resource locations (with renderer)100 shared_ptr<XMLFile> extResourcesGraphics_; //!< XML with resource locations in the external path (only for dev runs) (with renderer)101 99 102 100 // config values
Note: See TracChangeset
for help on using the changeset viewer.