mirror of
https://gitlab.com/ryandwyer/perfect-dark
synced 2026-06-03 18:35:52 -04:00
Identify all text functions
This commit is contained in:
+1
-1
@@ -211,7 +211,7 @@ extern struct wallhit *g_FreeWallhits;
|
||||
extern struct wallhit *g_ActiveWallhits;
|
||||
extern s32 g_MaxShards;
|
||||
extern struct shard *g_Shards;
|
||||
extern Gfx *var800a4634;
|
||||
extern Gfx *g_TextHoloRayGdl;
|
||||
extern struct room *g_Rooms;
|
||||
extern u8 *g_MpRoomVisibility;
|
||||
extern struct bgroom *g_BgRooms;
|
||||
|
||||
+3
-3
@@ -410,9 +410,9 @@ extern struct weatherdata *g_WeatherData;
|
||||
extern s32 g_NextShardNum;
|
||||
extern bool g_ShardsActive;
|
||||
extern s32 var800800f0jf;
|
||||
extern s32 g_ScaleX;
|
||||
extern s32 g_UiScaleX;
|
||||
extern s32 var80080108jf;
|
||||
extern s32 var8007fad0;
|
||||
extern s32 g_TextScaleX;
|
||||
extern struct font *g_FontNumeric;
|
||||
extern struct fontchar *g_CharsNumeric;
|
||||
extern struct font *g_FontHandelGothicXs;
|
||||
@@ -423,7 +423,7 @@ extern struct font *g_FontHandelGothicMd;
|
||||
extern struct fontchar *g_CharsHandelGothicMd;
|
||||
extern struct font *g_FontHandelGothicLg;
|
||||
extern struct fontchar *g_CharsHandelGothicLg;
|
||||
extern bool var8007fb9c;
|
||||
extern bool g_TextHoloRayEnabled;
|
||||
extern s32 g_StageIndex;
|
||||
extern s16 var8007fc0c;
|
||||
extern struct drawslot *g_BgSpecialDrawSlot;
|
||||
|
||||
+22
-18
@@ -10,18 +10,18 @@
|
||||
|
||||
void text_init(void);
|
||||
void text_set_rotation90(bool rotated);
|
||||
void text0f1531dc(bool arg0);
|
||||
void text_set_hires(bool hires);
|
||||
void text_reset(void);
|
||||
Gfx *text0f153628(Gfx *gdl);
|
||||
Gfx *text0f153780(Gfx *gdl);
|
||||
Gfx *text_set_prim_colour(Gfx *gdl, u32 colour);
|
||||
Gfx *text0f153838(Gfx *gdl);
|
||||
Gfx *text0f153858(Gfx *gdl, s32 *x1, s32 *y1, s32 *x2, s32 *y2);
|
||||
Gfx *text0f1538e4(Gfx *gdl, s32 *x1, s32 *y1, s32 *x2, s32 *y2);
|
||||
Gfx *text0f153990(Gfx *gdl, s32 left, s32 top, s32 width, s32 height);
|
||||
Gfx *text0f153a34(Gfx *gdl, s32 x1, s32 y1, s32 x2, s32 y2, u32 colour);
|
||||
Gfx *text0f153ab0(Gfx *gdl);
|
||||
void text0f153b40(void);
|
||||
Gfx *text_begin(Gfx *gdl);
|
||||
Gfx *text_end(Gfx *gdl);
|
||||
Gfx *text_begin_boxmode(Gfx *gdl, u32 colour);
|
||||
Gfx *text_end_boxmode(Gfx *gdl);
|
||||
Gfx *text_draw_black_box(Gfx *gdl, s32 *x1, s32 *y1, s32 *x2, s32 *y2);
|
||||
Gfx *text_draw_black_uibox(Gfx *gdl, s32 *x1, s32 *y1, s32 *x2, s32 *y2);
|
||||
Gfx *text_draw_black_textbox(Gfx *gdl, s32 left, s32 top, s32 width, s32 height);
|
||||
Gfx *text_draw_box(Gfx *gdl, s32 x1, s32 y1, s32 x2, s32 y2, u32 colour);
|
||||
Gfx *text_enable_holo_ray(Gfx *gdl);
|
||||
void text_disable_holo_ray(void);
|
||||
void text_set_diagonal_blend(s32 x, s32 y, f32 redrawtimer, u8 populated);
|
||||
void text_backup_diagonal_blend_settings(void);
|
||||
void text_restore_diagonal_blend_settings(void);
|
||||
@@ -34,15 +34,19 @@ void text_set_wave_colours(u32 colour1, u32 colour2);
|
||||
void text_reset_blends(void);
|
||||
bool text_has_diagonal_blend(void);
|
||||
u32 text_apply_projection_colour(s32 x, s32 y, u32 colour);
|
||||
u32 text0f1543ac(s32 x, s32 y, u32 colour);
|
||||
Gfx *text0f1552d4(Gfx *gdl, f32 x, f32 y, f32 widthscale, f32 heightscale, char *text, struct fontchar *chars, struct font *font, u32 colour, s32 hdir, s32 vdir);
|
||||
void text0f156024(s32 arg0);
|
||||
void text0f156030(u32 colour);
|
||||
Gfx *text_render_projected(Gfx *gdl, s32 *x, s32 *y, char *text, struct fontchar *chars, struct font *font, s32 colour, s32 width, s32 height, s32 arg9, s32 lineheight);
|
||||
Gfx *text_render(Gfx *gdl, s32 *x, s32 *y, char *text, struct fontchar *font1, struct font *font2, u32 arg6, u32 colour, s32 width, s32 height, u32 arg10, s32 arg11);
|
||||
u32 text_get_colour_at_pos(s32 x, s32 y, u32 colour);
|
||||
Gfx *text_render_credits(Gfx *gdl, f32 x, f32 y, f32 widthscale, f32 heightscale, char *text, struct fontchar *chars, struct font *font, u32 colour, s32 hdir, s32 vdir);
|
||||
void text_set_shadow_enabled(bool enabled);
|
||||
void text_set_shadow_colour(u32 colour);
|
||||
Gfx *text_render_v2(Gfx *gdl, s32 *x, s32 *y, char *text, struct fontchar *chars, struct font *font, u32 textcolour, s32 width, s32 height, s32 shadowoffset, s32 lineheight);
|
||||
Gfx *text_render_v1(Gfx *gdl, s32 *x, s32 *y, char *text, struct fontchar *font1, struct font *font2, u32 textcolour, u32 shadowcolour, s32 width, s32 height, s32 shadowoffset, s32 lineheight);
|
||||
void text_measure(s32 *textheight, s32 *textwidth, char *text, struct fontchar *font1, struct font *font2, s32 lineheight);
|
||||
void text_wrap(s32 width, char *in, char *out, struct fontchar *font1, struct font *font2);
|
||||
|
||||
Gfx *func0f1574d0jf(Gfx *gdl, s32 *x, s32 *y, char *text, struct fontchar *font1, struct font *font2, s32 colour, u32 colour2, s32 width, s32 height, s32 arg9, u32 arg10);
|
||||
#if VERSION == VERSION_JPN_FINAL
|
||||
Gfx *text_render_vx(Gfx *gdl, s32 *x, s32 *y, char *text, struct fontchar *font1, struct font *font2, u32 textcolour, u32 shadowcolour, s32 width, s32 height, s32 shadowoffset, s32 lineheight);
|
||||
#else
|
||||
#define text_render_vx text_render_v1
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
+4
-4
@@ -92,13 +92,13 @@
|
||||
|
||||
/**
|
||||
* gDPFillRectangleScaled - a wrapper around gDPFillRectangle which applies
|
||||
* g_ScaleX to the X coordinates.
|
||||
* g_UiScaleX to the X coordinates.
|
||||
*
|
||||
* g_ScaleX is normally 1, but 2 when using hi-res.
|
||||
* g_UiScaleX is normally 1, but 2 when using hi-res.
|
||||
*/
|
||||
#define gDPFillRectangleScaled(pkt, x1, y1, x2, y2) gDPFillRectangle(pkt, (x1) * g_ScaleX, y1, (x2) * g_ScaleX, y2)
|
||||
#define gDPFillRectangleScaled(pkt, x1, y1, x2, y2) gDPFillRectangle(pkt, (x1) * g_UiScaleX, y1, (x2) * g_UiScaleX, y2)
|
||||
|
||||
#define gDPHudRectangle(pkt, x1, y1, x2, y2) gDPFillRectangle(pkt, (x1) * g_ScaleX, y1, ((x2 + 1)) * g_ScaleX, (y2) + 1)
|
||||
#define gDPHudRectangle(pkt, x1, y1, x2, y2) gDPFillRectangle(pkt, (x1) * g_UiScaleX, y1, ((x2 + 1)) * g_UiScaleX, (y2) + 1)
|
||||
|
||||
/**
|
||||
* Custom combiner modes.
|
||||
|
||||
Reference in New Issue
Block a user