diff options
Diffstat (limited to 'src/resources/resourcemanager.h')
-rw-r--r-- | src/resources/resourcemanager.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/resources/resourcemanager.h b/src/resources/resourcemanager.h index f254a8b4..0086b167 100644 --- a/src/resources/resourcemanager.h +++ b/src/resources/resourcemanager.h @@ -27,6 +27,7 @@ #include <iosfwd> #include <map> #include <vector> +#include <SDL.h> class Resource; class Image; @@ -164,6 +165,13 @@ class ResourceManager loadTextFile(const std::string &fileName); /** + * Loads the given filename as an SDL surface. The returned surface is + * expected to be freed by the caller using SDL_FreeSurface. + */ + SDL_Surface* + loadSDLSurface(const std::string& filename); + + /** * Returns an instance of the class, creating one if it does not * already exist. */ |