mirror of
https://github.com/ZDoom/Raze.git
synced 2024-11-23 12:32:13 +00:00
454816299e
Due to dependencies on initializing some data in app_init it was not possible to cleanly set up the fonts. This adds a game-side function for loading the entire palettes before starting with the texture data and another one for loading game-side texture data. This now allows fully setting up the palettes before starting with the textures and to fully set up the textures before reading the .def files. All this is needed because to properly initialize, the fonts need to be able to access the fully initialized texture state, including replacements and hires substitutions from the .def files.
13 lines
281 B
C
13 lines
281 B
C
#pragma once
|
|
#include "v_font.h"
|
|
#include "c_cvars.h"
|
|
|
|
EXTERN_CVAR(Int, duke_menufont)
|
|
|
|
extern FFont* IndexFont;
|
|
extern FFont* DigiFont;
|
|
|
|
void InitFont();
|
|
void SetupFontSubstitution();
|
|
FFont* PickBigFont(const char* txt = nullptr);
|
|
FFont* PickSmallFont(const char* txt = nullptr);
|