Opened 16 years ago
Last modified 15 years ago
#294 closed task
Resource providing — at Initial Version
Reported by: | rgrieder | Owned by: | nobody |
---|---|---|---|
Priority: | minor | Milestone: | Version 0.3 Codename: Castor |
Component: | Ogre | Version: | 0.2.0 |
Keywords: | resource, oxw | Cc: | |
Referenced By: | References: |
Description
Outline
Loading files from a filesystem can be quite painful if you have to specify its exact location with all the folders.
Ogre has dealt with this problem by the means of a Resource Manager. You give it all the locations in a configuration file and then it sweeps all the contents and wraps the with a Resource. They can be of any kind (font, image, mesh, etc.) and that can be extended to serve our purposes.
The Task
Study the Ogre Resource providing concept on the documentation pages (also consider the Doxygen code). Then try to extend the Ogre framework to be able to also also the kind of files we want to load. A little abstract:
- Level files: oxw (XML)
- Overlay files: oxo (XML), though this could be replaced by oxw since its both XML
- TCL scripts: tcl
- More to come I'm sure