Game Develop C++ Platform: FontManager Class Reference

| Game Develop C++ Platform Platform for developing native games based on OpenGL and SFML with Game Develop

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files

- Class List
- Class Index
- Class Hierarchy
- Class Members

All Classes Namespaces Files Functions Variables Typedefs Enumerations Groups Pages
Public Member Functions | Static Public Member Functions | List of all members
FontManager Class Reference
Resources management

FontManager loads and manages SFML fonts. More...

`#include <FontManager.h>`

## Public Member Functions

const sf::Font * | GetFont (const std::string &fontName)
| Return a pointer to an SFML font. More...
void | UnloadAllFonts ()
| Unload all fonts from memory.

## Static Public Member Functions

static FontManager * | GetInstance ()
| Return a pointer to the global singleton class.
static void | DestroySingleton ()
| Destroy the global singleton class.

## Detailed Description

FontManager loads and manages SFML fonts.

## Member Function Documentation

const sf::Font * FontManager::GetFont | ( | const std::string & | fontName) |  |

Return a pointer to an SFML font.

Example :

sfmlText.SetFont(*fontManager->GetFont(fontName));

Here is the call graph for this function:

The documentation for this class was generated from the following files:

- FontManager.h
- FontManager.cpp