KallistiOS git master
Independent SDK for the Sega Dreamcast
Loading...
Searching...
No Matches
fnt_test.cc File Reference
#include <kos.h>
#include <dcplib/fnt.h>

Functions

void switchFont ()
 
void switchFilterMode ()
 
void drawFrame ()
 
int read_input ()
 
int main (int argc, char **argv)
 

Variables

fntRenderer * text
 
const int MAX_FONTS = 20
 
const char * font_names [MAX_FONTS]
 
fntTexFont * font_list [MAX_FONTS]
 
int cur_font = 0
 
int max_font = 0
 
int filter_mode = 0
 

Function Documentation

◆ drawFrame()

◆ main()

int main ( int argc,
char ** argv )

◆ read_input()

◆ switchFilterMode()

void switchFilterMode ( )

References filter_mode.

Referenced by read_input().

◆ switchFont()

void switchFont ( )

References cur_font, and max_font.

Referenced by read_input().

Variable Documentation

◆ cur_font

int cur_font = 0

Referenced by drawFrame(), main(), and switchFont().

◆ filter_mode

int filter_mode = 0

Referenced by drawFrame(), and switchFilterMode().

◆ font_list

fntTexFont* font_list[MAX_FONTS]

Referenced by drawFrame(), and main().

◆ font_names

const char* font_names[MAX_FONTS]
Initial value:
= {
"sorority.txf",
"charter.txf",
"courier-bold.txf",
"courier_medium.txf",
"curlfont.txf",
"default.txf",
"haeberli.txf",
"helvetica_bold.txf",
"helvetica_medium.txf",
"lucida.txf",
"lucidabright_bold.txf",
"schoolbook_bold.txf",
"schoolbook_medium.txf",
"symbol.txf",
"times_bold.txf",
"times_medium.txf",
"typewriter.txf",
}
#define NULL
Definition memtest.h:26

Referenced by drawFrame(), and main().

◆ max_font

int max_font = 0

Referenced by main(), and switchFont().

◆ MAX_FONTS

const int MAX_FONTS = 20

◆ text

fntRenderer* text