#include <resourcemanager.h>
Definition at line 33 of file resourcemanager.h.
Public Member Functions | |
| ResourceManager () | |
| Constructor. | |
| ~ResourceManager () | |
| Destructor. | |
| void * | loadFile (const std::string &fileName, int &fileSize) |
| Allocates data into a buffer pointer for raw data loading. | |
| std::vector< std::string > | loadTextFile (const std::string &fileName) |
| Retrieves the contents of a text file. | |
Static Public Member Functions | |
| ResourceManager * | getInstance () |
| Returns an instance of the class, creating one if it does not already exist. | |
| void | deleteInstance () |
| Deletes the class instance if it exists. | |
Private Member Functions | |
| void | searchAndAddZipFiles () |
| Searches for zip files and adds them to the PhysicsFS search path. | |
Static Private Attributes | |
| ResourceManager * | instance = NULL |
|
|
Constructor.
Definition at line 42 of file resourcemanager.cpp. |
|
|
Destructor.
Definition at line 48 of file resourcemanager.cpp. |
|
|
Deletes the class instance if it exists.
Definition at line 61 of file resourcemanager.cpp. |
|
|
Returns an instance of the class, creating one if it does not already exist.
Definition at line 53 of file resourcemanager.cpp. |
|
||||||||||||
|
Allocates data into a buffer pointer for raw data loading.
The returned data is expected to be freed using
|
|
|
Retrieves the contents of a text file.
|
|
|
Searches for zip files and adds them to the PhysicsFS search path.
Definition at line 70 of file resourcemanager.cpp. |
|
|
Definition at line 40 of file resourcemanager.cpp. |
1.3.9.1