KallistiOS git master
Independent SDK for the Sega Dreamcast
Loading...
Searching...
No Matches
font.h
Go to the documentation of this file.
1/*
2 KallistiOS 2.0.0
3
4 font.h
5 (C) 2013 Josh Pearson
6*/
7
8#ifndef FONT_H
9#define FONT_H
10
11#define ASCI_SYMBOL_OFT 32
12#define ASCI_TOTAL_CHAR 128-ASCI_SYMBOL_OFT
13#define INVALID_UV -1.0f
14
15typedef struct {
16 float TexW, TexH;
17 float CharW, CharH;
18 unsigned char RowStride, ColStride;
19 unsigned int TexFmt;
20 unsigned int Color;
21 unsigned int TexId;
22 float TexUV[ASCI_TOTAL_CHAR][4];
23 void *TexAddr;
24} Font;
25
26Font *FontInit(float TexW, float TexH,
27 unsigned char RowStride, unsigned char ColStride,
28 uint32_t Color);
29
30void FontPrintString(Font *font, char *str, float xpos, float ypos,
31 float width, float height);
32
34
35#endif
fntTexFont * font
Definition clock.cc:12
#define ASCI_TOTAL_CHAR
Definition font.h:12
Font * FontInit(float TexW, float TexH, unsigned char RowStride, unsigned char ColStride, uint32_t Color)
Definition font.c:17
void FontSetColor(Font *font, uint32_t color)
void FontPrintString(Font *font, char *str, float xpos, float ypos, float width, float height)
Definition font.c:68
static uint32_t("Please see purupuru_effect_t for modern equivalent.") PURUPURU_EFFECT2_UINTENSITY(uint8_t x)
Definition purupuru.h:98
Definition font.h:15
float CharH
Definition font.h:17
unsigned int Color
Definition font.h:20
void * TexAddr
Definition font.h:23
unsigned int TexId
Definition font.h:21
unsigned char ColStride
Definition font.h:18
float TexH
Definition font.h:16
unsigned int TexFmt
Definition font.h:19
uint32_t color
Definition ta.c:111