R-Type
Public Member Functions | List of all members
GameEngine::Font Class Reference

Class representing a font wrapper for sf::Font. More...

#include <SfmlTypes.hpp>

Inheritance diagram for GameEngine::Font:
GameEngine::IFont< sf::Font >

Public Member Functions

 Font ()
 Default constructor for Font. More...
 
 ~Font ()=default
 Destructor for Font. More...
 
const sf::Font & getFont () const override
 Returns the wrapped sf::Font. More...
 
void load (const std::string &filename) override
 Loads the font from a file. More...
 
- Public Member Functions inherited from GameEngine::IFont< sf::Font >
 ~IFont ()=default
 Destructor. More...
 

Detailed Description

Class representing a font wrapper for sf::Font.

Constructor & Destructor Documentation

◆ Font()

GameEngine::Font::Font ( )
inline

Default constructor for Font.

◆ ~Font()

GameEngine::Font::~Font ( )
default

Destructor for Font.

Member Function Documentation

◆ getFont()

const sf::Font& GameEngine::Font::getFont ( ) const
inlineoverridevirtual

Returns the wrapped sf::Font.

Returns
Reference to the sf::Font instance

Implements GameEngine::IFont< sf::Font >.

◆ load()

void GameEngine::Font::load ( const std::string &  filename)
inlineoverridevirtual

Loads the font from a file.

Parameters
filenameThe path to the font file

Implements GameEngine::IFont< sf::Font >.


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