Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: data/branches/media_stripped/resources_graphics.oxr @ 5654

Last change on this file since 5654 was 5654, checked in by rgrieder, 15 years ago
  • Implemented file management via resource manager and loading of resource locations via XML. Changes made:
    • SoundManager loads via memory stream rather than via file
    • Loader uses LuaState::includeFile() to load an XML file and passes the lua tag remover function to its LuaState.
    • ConfigFileManager still loads with hard paths because the files are required before Ogre gets created
  • Renamed LuaBind to LuaState, deSingletonised it and added new features:
    • doFile(), doString(), includeFile(), includeString() where include will preparse the string with a function provided with LuaState::setIncludeParser
    • Moved lua tags replace function to Loader (since it's actually an XML related task)
    • Using data_path/lua/LuaInitScript.lua to provide the following functions
      • logMessage(level, message)
      • doFile, dofile, include (all working with relative paths but within the same resource group)
  • Modified Script class to work with LuaState and fixed its XML Loader
  • Adjusted all level and include files (both "include" and "dofile" lua commands)
File size: 761 bytes
Line 
1<ResourceCollection resourceGroup = "General" >
2    <ResourceLocation path = "audio" />
3    <ResourceLocation path = "fonts" />
4    <ResourceLocation path = "materials/programs" />
5    <ResourceLocation path = "materials/scripts" />
6    <ResourceLocation path = "materials/textures" />
7    <ResourceLocation path = "models" />
8    <ResourceLocation path = "gui/fonts" />
9    <ResourceLocation path = "packs/cubemap.zip" archiveType = "Zip" />
10    <ResourceLocation path = "packs/skybox.zip"  archiveType = "Zip" />
11</ResourceCollection>
12
13<ResourceCollection resourceGroup = "GUI" >
14    <ResourceLocation path = "gui/fonts" />
15    <ResourceLocation path = "gui/imagesets" />
16    <ResourceLocation path = "gui/looknfeel" />
17</ResourceCollection>
Note: See TracBrowser for help on using the repository browser.