#include <OpenGUI_GenericResourceProvider.h>
Inheritance diagram for OpenGUI::GenericResourceProvider:

If no specialized resource provider is given during creation of the System() object, then this resource provider is automatically loaded used. It is a completely unglorified provider. It reads from files directly off the disk, and requires proper relative or full paths to these files. It literally does nothing more than act as a passthrough to fstream. Most applications will want to create their own resource provider, as this one is very low on features.
Public Member Functions | |
| void | loadResource (const std::string &filename, Resource &output) |
| This will be called whenever OpenGUI needs data from the registered resource provider. | |
| void | unloadResource (Resource &resource) |
| This is called whenever OpenGUI is done with the data and is ready to destroy the Resource contents. | |
| void OpenGUI::GenericResourceProvider::loadResource | ( | const std::string & | filename, | |
| Resource & | output | |||
| ) | [virtual] |
This will be called whenever OpenGUI needs data from the registered resource provider.
Implements OpenGUI::ResourceProvider.
| void OpenGUI::GenericResourceProvider::unloadResource | ( | Resource & | resource | ) | [virtual] |
This is called whenever OpenGUI is done with the data and is ready to destroy the Resource contents.
Implements OpenGUI::ResourceProvider.