OpenBarnyard
 
Loading...
Searching...
No Matches
AGUI2FontManager.h
Go to the documentation of this file.
1#pragma once
2#include "AGUI2Font.h"
3#include "AGUI2FontResource.h"
4
6{
7public:
8 static constexpr TUINT MAX_NUM_LOADED_FONTS = 1;
9 static constexpr TUINT MAX_NUM_FONT_REFS = 16;
10
11public:
12 static TBOOL Open( const TCHAR* a_szFileName );
13
14 static AGUI2Font* FindFont( const TCHAR* a_szFontName );
15 static AGUI2FontRef* FindFontRef( const TCHAR* a_szFontName );
16 static AGUI2FontResource* FindFontResource( const TCHAR* a_szResourceName );
17
18private:
19 static AGUI2FontRef* FindUnusedFontRef();
20 static AGUI2FontResource* FindUnusedFontResource();
21 static void CreateFontFromResource( AGUI2FontResource* a_pFontResource );
22
23public:
26};
unsigned int TUINT
Definition Typedefs.h:8
char TCHAR
Definition Typedefs.h:20
bool TBOOL
Definition Typedefs.h:6
static AGUI2FontRef * FindFontRef(const TCHAR *a_szFontName)
static constexpr TUINT MAX_NUM_FONT_REFS
static TBOOL Open(const TCHAR *a_szFileName)
static AGUI2FontResource * FindFontResource(const TCHAR *a_szResourceName)
static AGUI2FontResource s_fontresources[MAX_NUM_LOADED_FONTS]
static constexpr TUINT MAX_NUM_LOADED_FONTS
static AGUI2FontRef s_fontrefs[MAX_NUM_FONT_REFS]
static AGUI2Font * FindFont(const TCHAR *a_szFontName)