malena
Why malena
Quick start
Tutorials
API docs
GitHub
GitHub
Tutorials
Loading...
Searching...
No Matches
Resources
FontManager.h
Go to the documentation of this file.
1
#ifndef FONTMANAGER_H
2
#define FONTMANAGER_H
3
4
#include <
Malena/Resources/ResourceManager.h
>
5
#include "
Malena/Manifests/DefaultManifest.h
"
6
#include <
SFML/Graphics/Font.hpp
>
7
#include <
Malena/Resources/Fonts/arial.h
>
8
#include <
Malena/Utilities/LoaderFunctions.h
>
9
10
namespace
ml
11
{
40
template
<
typename
Manifest = DefaultManifest>
45
class
FontManager
:
public
ResourceManager
<Manifest, sf::Font, &fileOpener>
46
{
47
public
:
57
static
const
sf::Font
&
getDefault
();
58
};
59
60
}
// namespace ml
61
62
#include "../../../src/Resources/FontManager.tpp"
63
#endif
// FONTMANAGER_H
Font.hpp
DefaultManifest.h
LoaderFunctions.h
ResourceManager.h
arial.h
ml::FontManager
Manifest-driven cache for sf::Font resources.
Definition
FontManager.h:46
ml::FontManager::getDefault
static const sf::Font & getDefault()
Return the built-in Arial font.
ml::ResourceManager
Generic manifest-driven resource cache.
Definition
ResourceManager.h:42
sf::Font
ml
Definition
Component.h:18
Generated by
1.16.1