KallistiOS git master
Independent SDK for the Sega Dreamcast
Loading...
Searching...
No Matches
font.h File Reference

Go to the source code of this file.

Data Structures

struct  Font
 

Macros

#define ASCI_SYMBOL_OFT   32
 
#define ASCI_TOTAL_CHAR   128-ASCI_SYMBOL_OFT
 
#define INVALID_UV   -1.0f
 

Functions

FontFontInit (float TexW, float TexH, unsigned char RowStride, unsigned char ColStride, uint32_t Color)
 
void FontPrintString (Font *font, char *str, float xpos, float ypos, float width, float height)
 
void FontSetColor (Font *font, uint32_t color)
 

Macro Definition Documentation

◆ ASCI_SYMBOL_OFT

#define ASCI_SYMBOL_OFT   32

◆ ASCI_TOTAL_CHAR

#define ASCI_TOTAL_CHAR   128-ASCI_SYMBOL_OFT

Referenced by FontInit().

◆ INVALID_UV

#define INVALID_UV   -1.0f

Referenced by FontInit(), and FontUvNotCached().

Function Documentation

◆ FontInit()

Font * FontInit ( float TexW,
float TexH,
unsigned char RowStride,
unsigned char ColStride,
uint32_t Color )

References ASCI_TOTAL_CHAR, font, INVALID_UV, and malloc().

Referenced by main().

◆ FontPrintString()

void FontPrintString ( Font * font,
char * str,
float xpos,
float ypos,
float width,
float height )

References font, FontDrawChar(), x, and y.

Referenced by main().

◆ FontSetColor()

void FontSetColor ( Font * font,
uint32_t color )