R-Type
Public Member Functions | List of all members
GameEngine::IFont< T > Class Template Referenceabstract

Interfaces for the text font. More...

#include <RenderInterfaces.hpp>

Public Member Functions

 ~IFont ()=default
 Destructor. More...
 
virtual const T & getFont () const =0
 Get the font that will be stored. More...
 
virtual void load (const std::string &filename)=0
 Load the font. More...
 

Detailed Description

template<class T>
class GameEngine::IFont< T >

Interfaces for the text font.

Template Parameters
Ttype of the font

Constructor & Destructor Documentation

◆ ~IFont()

template<class T >
GameEngine::IFont< T >::~IFont ( )
default

Destructor.

Member Function Documentation

◆ getFont()

template<class T >
virtual const T& GameEngine::IFont< T >::getFont ( ) const
pure virtual

Get the font that will be stored.

Returns
Reference to the font

Implemented in GameEngine::Font.

◆ load()

template<class T >
virtual void GameEngine::IFont< T >::load ( const std::string &  filename)
pure virtual

Load the font.

Parameters
filenameFile from which to load the font

Implemented in GameEngine::Font.


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