Explicit resource loading in Ogre (Mogre)
- by sebf
I am just starting to learn Mogre and what I would like to do is to be able to load resources 'explicitly' (i.e. I just provide an absolute path instead of using a resource group tied to a directory).
This is very different to manually loading resources, which I believe in Ogre has a very specific meaning, to build up the object using Ogres methods. I want to use Ogres resource management system/resource loading code, but to have finer control over which files are loaded and in what groups they are.
I remember reading how to do this but cannot find the page again; I think its possible to do something like:
Declare a resource group
Declare the resource(s) (this is when the actual resource file name is provided)
Initialise the resource group to actually load the resource(s)
Is this the correct procedure? If so, is there any example code showing how to do this?