Euphoria
fontcache.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <memory>
4 
5 
6 namespace eu::io
7 {
8  struct FileSystem;
9  struct FilePath;
10 }
11 
12 
13 namespace eu::render
14 {
15  struct DrawableFont;
16  struct TextureCache;
17 
18  struct FontCache
19  {
20  struct FontCachePimpl;
21  std::unique_ptr<FontCachePimpl> pimp;
22 
25 
26  FontCache(const FontCache&) = delete;
27  FontCache(FontCache&&) = delete;
28  void operator=(const FontCache&) = delete;
29  void operator=(FontCache&&) = delete;
30 
31  [[nodiscard]] std::shared_ptr<DrawableFont> get_font
32  (const io::FilePath& path) const;
33  };
34 }
Definition: enum.h:8
FontCache(io::FileSystem *fs, TextureCache *cache)
Definition: fontcache.cc:33
std::shared_ptr< DrawableFont > get_font(const io::FilePath &path) const
Definition: fontcache.cc:41
void operator=(const FontCache &)=delete
void operator=(FontCache &&)=delete
FontCache(FontCache &&)=delete
FontCache(const FontCache &)=delete
std::unique_ptr< FontCachePimpl > pimp
Definition: fontcache.h:20