Changeset 5657 for code/branches/resource2
- Timestamp:
- Aug 17, 2009, 9:12:54 PM (15 years ago)
- Location:
- code/branches/resource2
- Files:
-
- 1 deleted
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/resource2/data/resources.oxr
r5656 r5657 3 3 <ResourceLocation path = "lua" /> 4 4 <ResourceLocation path = "overlays" /> 5 <ResourceLocation path = "particle" /> 5 6 <ResourceLocation path = "tcl" /> 6 7 </ResourceCollection> 8 9 <ResourceCollection resourceGroup = "GUI" > 10 <ResourceLocation path = "gui/configs" /> 11 <ResourceLocation path = "gui/layouts" /> 12 <ResourceLocation path = "gui/schemes" /> 13 <ResourceLocation path = "gui/scripts" /> 14 </ResourceCollection> -
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.