![]() |
Pyrogenesis HEAD
Pyrogenesis, a RTS Engine
|
Font manager: loads and caches bitmap fonts. More...
#include <FontManager.h>

Public Member Functions | |
| CFontManager (Renderer::Backend::IDevice *device) | |
| ~CFontManager () | |
| NONCOPYABLE (CFontManager) | |
| CFont * | LoadFont (CStrIntern fontName, CStrIntern locale) |
| void | UploadAtlasTexturesToGPU (Renderer::Backend::IDeviceCommandContext *deviceCommandContext) |
Private Types | |
| using | FontsMap = std::unordered_map< CStrIntern, CFont > |
Static Private Member Functions | |
| static void | ftLibraryDeleter (FT_Library library) |
Private Attributes | |
| std::unique_ptr< FT_LibraryRec_, decltype(&ftLibraryDeleter)> | m_FreeType {nullptr, &ftLibraryDeleter} |
| std::unique_ptr< std::array< float, 256 > > | m_GammaCorrectionLUT |
| FontsMap | m_Fonts |
| float | m_GUIScale {1.0f} |
| std::unique_ptr< CConfigDBHook > | m_GUIScaleHook |
| Renderer::Backend::IDevice * | m_Device |
Static Private Attributes | |
| static constexpr float | GAMMA_CORRECTION = 2.2f |
Font manager: loads and caches bitmap fonts.
|
private |
| CFontManager::CFontManager | ( | Renderer::Backend::IDevice * | device | ) |
|
default |
|
inlinestaticprivate |
| CFont * CFontManager::LoadFont | ( | CStrIntern | fontName, |
| CStrIntern | locale | ||
| ) |
| CFontManager::NONCOPYABLE | ( | CFontManager | ) |
| void CFontManager::UploadAtlasTexturesToGPU | ( | Renderer::Backend::IDeviceCommandContext * | deviceCommandContext | ) |
|
staticconstexprprivate |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |