Wrath of Zeus
Made by Torchlight Games for CSE 125 SP24
Loading...
Searching...
No Matches
Public Member Functions
gui::font::Loader Class Reference

#include <loader.hpp>

Public Member Functions

 Loader ()=default
 
bool init ()
 
const CharacterloadChar (char c, Font font) const
 

Detailed Description

Handles loading all of the fonts we want to use, and provides an interface to get the Character information (e.g. opengl texture and sizing information).

Constructor & Destructor Documentation

◆ Loader()

gui::font::Loader::Loader ( )
default

Member Function Documentation

◆ init()

bool gui::font::Loader::init ( )

Initializes all of the font information for every font we want to use and stores it inside of the font map data member.

◆ loadChar()

const Character & gui::font::Loader::loadChar ( char  c,
Font  font 
) const

Loads the specified character with the specified font and size

Parameters
cASCII char to load
fontAbstract font to use.
Returns
the Character information for that glyph

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