![]() |
Gamedev Framework (gf) 1.2.0
A C++17 framework for 2D games
|
A resource manager. More...
#include <gf/ResourceManager.h>

Public Member Functions | |
| ResourceManager () | |
| Default constructor. More... | |
| ResourceManager (std::initializer_list< Path > paths) | |
| Constructor with a list of search directories. More... | |
| Image & | getImage (const Path &path) |
| Get an image. More... | |
| Texture & | getTexture (const Path &path) |
| Get a texture. More... | |
| Font & | getFont (const Path &path) |
| Get a font. More... | |
Public Member Functions inherited from gf::AssetManager | |
| void | addSearchDir (Path path) |
| Add a search directory. More... | |
| Path | getAbsolutePath (const Path &relativePath) const |
| Search a file in the search directories. More... | |
| Path | getRelativePath (const Path &absolutePath) const |
| Search a file in the search directories. More... | |
A resource manager.
| gf::ResourceManager::ResourceManager | ( | ) |
Default constructor.
| gf::ResourceManager::ResourceManager | ( | std::initializer_list< Path > | paths | ) |
Constructor with a list of search directories.
Get a font.
| path | A path to the font |
| std::runtime_error | If the font is not found |
Get an image.
| path | A path to the image |
| std::runtime_error | If the font is not found |