coastline 0.0.4
Loading...
Searching...
No Matches
debugtext.h
Go to the documentation of this file.
1#ifndef COASTLINE_DEBUGTEXT_H
2#define COASTLINE_DEBUGTEXT_H
3
9
10#include <PR/ultratypes.h>
11
12#ifdef __cplusplus
13extern "C" {
14#endif
15
17#define BITMAP_FONT_GLYPHS 69
18
20#define BITMAP_FONT_ROWS 7
21
22/* The columns of a glyph of each font. */
23#define BITMAP_FONT_WIDE_COLUMNS 5
24#define BITMAP_FONT_NARROW_COLUMNS 3
25
35
45
54extern s32 g_dwBitmapTextX;
55
64extern s32 g_dwBitmapTextY;
65
75
85
86#if !TGR_BOSS_RALLY
98#endif /* !TGR_BOSS_RALLY */
99
109
120void DrawBitmapTextToFramebuffer(const char *text);
121
130void InitBitmapText(void);
131
144
154
164
165#ifdef __cplusplus
166}
167#endif
168
169#endif /* COASTLINE_DEBUGTEXT_H */
void DebugFrameStubA(void)
A per-frame debug hook with an empty body.
s16 g_aBitmapFontWide[BITMAP_FONT_GLYPHS][BITMAP_FONT_ROWS][BITMAP_FONT_WIDE_COLUMNS]
The wide font.
void BeginDebugStats(void)
Start the debug statistics of a frame.
s16 g_aBitmapFontNarrow[BITMAP_FONT_GLYPHS][BITMAP_FONT_ROWS][BITMAP_FONT_NARROW_COLUMNS]
The narrow font.
s32 g_dwBitmapTextX
The column where the bitmap text starts its line.
void StepDebugHiddenInstance(void)
Step the hidden placed model by the cycle step until it reaches one drawn this frame,...
u16 g_wBitmapTextColor
The colour of the wide font.
s32 g_bBitmapTextNarrow
Whether the bitmap text uses the narrow font.
#define BITMAP_FONT_ROWS
The rows of a glyph.
Definition debugtext.h:20
s32 g_dwBitmapTextY
The row where the bitmap text starts.
#define BITMAP_FONT_GLYPHS
The characters of the bitmap fonts, from space to the last of {|}~.
Definition debugtext.h:17
#define BITMAP_FONT_NARROW_COLUMNS
Definition debugtext.h:24
s32 g_nDebugInstanceCycleStep
The step StepDebugHiddenInstance() takes through the placed models, or 0 to stay.
#define BITMAP_FONT_WIDE_COLUMNS
Definition debugtext.h:23
void InitBitmapText(void)
Start the bitmap text at the top left in white, in the wide font.
void DebugFrameStubB(void)
A per-frame debug hook with an empty body.
void DrawBitmapTextToFramebuffer(const char *text)
Draw text into the frame buffer on display, outlined in black.
Integer and floating-point types of libultra.
short s16
Definition ultratypes.h:24
unsigned short u16
Definition ultratypes.h:19
int s32
Definition ultratypes.h:25