Turbo Engine 0.3
A C++ game engine using Allegro 5
turbo::Font Class Reference

Represent the text font. More...

#include <Font.hpp>

Public Member Functions

 Font (const Path &path, unsigned short size)
 Construct a new Font for a ttf file.
 ~Font ()
 Destroy the Font and free the underlying Allegro font.
 Font (const Font &)=delete
Fontoperator= (const Font &)=delete
void * __get_font () const

Protected Attributes

ALLEGRO_FONT * font
 target allegro font

Detailed Description

Represent the text font.

Constructor & Destructor Documentation

◆ Font() [1/2]

turbo::Font::Font ( const Path & path,
unsigned short size )

Construct a new Font for a ttf file.

Parameters
pathpath to the ttf file
sizesize of the font in px

◆ ~Font()

turbo::Font::~Font ( )

Destroy the Font and free the underlying Allegro font.

◆ Font() [2/2]

turbo::Font::Font ( const Font & )
delete

Member Function Documentation

◆ __get_font()

void * turbo::Font::__get_font ( ) const

◆ operator=()

Font & turbo::Font::operator= ( const Font & )
delete

Member Data Documentation

◆ font

ALLEGRO_FONT* turbo::Font::font
protected

target allegro font


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