Bomberman
Font.hpp
Go to the documentation of this file.
1 /*
2 ** EPITECH PROJECT, 2021
3 ** Bomberman
4 ** File description:
5 ** Font
6 */
7 
8 #ifndef FONT_HPP_
9 #define FONT_HPP_
10 
11 #include <raylib.h>
12 #include <string>
13 #include "Utils/Cache.hpp"
14 
15 namespace RAY
16 {
18  class Font {
19  public:
23  Font(const std::string &filename, bool lonely = false);
24 
26  Font(const Font &) = default;
27 
29  Font();
30 
32  Font &operator=(const Font &) = default;
33 
35  ~Font() = default;
36 
37  protected:
38  private:
40  std::shared_ptr<::Font> _font;
41 
43  };
44 }
45 
46 #endif
RAY::Font::_font
std::shared_ptr<::Font > _font
Font, really, that's just it...
Definition: Font.hpp:40
Cache.hpp
RAY
Definition: IAudio.hpp:12
RAY::Font::_fontsCache
static Cache<::Font > _fontsCache
Definition: Font.hpp:42
RAY::Font::Font
Font()
A default constructor, no ressources loaded.
Definition: Font.cpp:23
RAY::Cache
A templated class used to cache ressources, indexed with a string.
Definition: Cache.hpp:23
RAY::Font::operator=
Font & operator=(const Font &)=default
An font is assignable.
RAY::Font
A font manager.
Definition: Font.hpp:18
RAY::Font::~Font
~Font()=default
Default destructor.