8#ifndef W_ASSET_MANAGER_HPP
9#define W_ASSET_MANAGER_HPP
11#pragma GCC diagnostic push
12#pragma GCC diagnostic ignored "-Wfloat-equal"
13#pragma GCC diagnostic ignored "-Wswitch-default"
14#include <SFML/Graphics.hpp>
15#pragma GCC diagnostic pop
68 void LoadFont(
const std::string& name,
const std::string& fileName );
76 sf::Font&
getFont(
const std::string& name );
90 std::map< std::string, sf::Font > mFont;
105 template <
typename Map >
106 static void EnsureExists(
const Map& map,
const std::string& name,
const std::string& type );
AssetManager & operator=(const AssetManager &)=delete
sf::Font & getFont(const std::string &name)
Retrieves a reference to a previously loaded font.
Definition wAssetManager.cpp:29
void debugPrintFonts() const
Prints the list of loaded fonts to standard output.
Definition wAssetManager.cpp:42
void LoadFont(const std::string &name, const std::string &fileName)
Loads a font from file and stores it under a given name.
Definition wAssetManager.cpp:19
void RemoveFont(const std::string &name)
Removes a previously loaded font from memory.
Definition wAssetManager.cpp:35
AssetManager(const AssetManager &)=delete
Definition wColorComponent.cpp:9