KallistiOS git master
Independent SDK for the Sega Dreamcast
Loading...
Searching...
No Matches
font.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <KGL/gl.h>
#include "font.h"

Functions

FontFontInit (float TexW, float TexH, unsigned char RowStride, unsigned char ColStride, uint32_t Color)
 
unsigned char FontUvNotCached (Font *font, int index)
 
void FontDrawChar (Font *font, int index, float x, float y, float w, float h)
 
void FontPrintString (Font *font, char *str, float xpos, float ypos, float width, float height)
 

Function Documentation

◆ FontDrawChar()

void FontDrawChar ( Font * font,
int index,
float x,
float y,
float w,
float h )

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

Referenced by FontPrintString().

◆ 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().

◆ FontUvNotCached()

unsigned char FontUvNotCached ( Font * font,
int index )

References font, and INVALID_UV.

Referenced by FontDrawChar().