SSBM Decomp
Loading...
Searching...
No Matches
hsd_3915.c File Reference
#include "hsd_3915.h"
#include <math.h>
#include <placeholder.h>
#include "cobj.h"
#include "pobj.h"
#include "state.h"
#include <dolphin/gx.h>
#include <dolphin/gx/GXGeometry.h>
#include <sysdolphin/baselib/debug_font.inc>

Data Structures

struct  GlyphEntry

Typedefs

typedef void(* GlyphFn) (u8 *dst, s32 flags, s32 unused1, s32 unused2, const u8 *src)

Functions

void DrawRectangle (f32 x_min, f32 y_min, f32 w, f32 h, GXColor *color)
f32 DrawASCII (int chr, float x, float y, GXColor *color)
void hsd_80391A04 (float scale_x, float scale_y, int line_width)
static int hexval (int ch)
s32 hsd_80391AC8 (char *str, GXColor *color, f32 x, f32 y)
void hsd_80391E18 (const u8 *list, f32 x1, f32 y1, f32 x2, f32 y2)
static f32 hsd_80391F28_len (f32 dy, f32 dx)
 Newton-Raphson sqrtf; the volatile round-trip pins the single-precision result.
void hsd_80391F28 (GXColor *color, f32 x1, f32 y1, f32 x2, f32 y2, f32 count)
 Draws a line from (x1,y1) to (x2,y2) with a tick mark every step; every fifth tick is drawn longer.
void hsd_80392194 (u8 *dst, s32 flags, s32 unused1, s32 unused2, const u8 *src)
void hsd_803921B8 (void *bitmap, s32 x, s32 y, s32 dst, s32 w, s32 h, s32 stride, void *tbl)
void hsd_803922FC (void *bitmap, s32 x, s32 y, s32 parity, s32 dst, s32 w, s32 h, s32 stride, void *tbl)

Variables

struct ParticleScreenState hsd_804CF810
static u16 numPeakParticles
static u8 lbl_80408630 [0x268]
static float lbl_804D6070 = 12.0F
static float lbl_804D6074 = 12.0F
static u8 lbl_804D6078 = 12
GlyphEntry lbl_80408898 [4]
DebugFontGlyph HSD_DebugFontAtlas []

Typedef Documentation

◆ GlyphFn

typedef void(* GlyphFn) (u8 *dst, s32 flags, s32 unused1, s32 unused2, const u8 *src)

Function Documentation

◆ DrawRectangle()

void DrawRectangle ( f32 x_min,
f32 y_min,
f32 w,
f32 h,
GXColor * color )

◆ DrawASCII()

f32 DrawASCII ( int chr,
float x,
float y,
GXColor * color )

◆ hsd_80391A04()

void hsd_80391A04 ( float scale_x,
float scale_y,
int line_width )

◆ hexval()

int hexval ( int ch)
inlinestatic

◆ hsd_80391AC8()

s32 hsd_80391AC8 ( char * str,
GXColor * color,
f32 x,
f32 y )

◆ hsd_80391E18()

void hsd_80391E18 ( const u8 * list,
f32 x1,
f32 y1,
f32 x2,
f32 y2 )

◆ hsd_80391F28_len()

f32 hsd_80391F28_len ( f32 dy,
f32 dx )
inlinestatic

Newton-Raphson sqrtf; the volatile round-trip pins the single-precision result.

◆ hsd_80391F28()

void hsd_80391F28 ( GXColor * color,
f32 x1,
f32 y1,
f32 x2,
f32 y2,
f32 count )

Draws a line from (x1,y1) to (x2,y2) with a tick mark every step; every fifth tick is drawn longer.

◆ hsd_80392194()

void hsd_80392194 ( u8 * dst,
s32 flags,
s32 unused1,
s32 unused2,
const u8 * src )

◆ hsd_803921B8()

void hsd_803921B8 ( void * bitmap,
s32 x,
s32 y,
s32 dst,
s32 w,
s32 h,
s32 stride,
void * tbl )

◆ hsd_803922FC()

void hsd_803922FC ( void * bitmap,
s32 x,
s32 y,
s32 parity,
s32 dst,
s32 w,
s32 h,
s32 stride,
void * tbl )

Variable Documentation

◆ hsd_804CF810

struct ParticleScreenState hsd_804CF810
extern

◆ numPeakParticles

u16 numPeakParticles
static

◆ lbl_80408630

u8 lbl_80408630[0x268]
static

◆ lbl_804D6070

float lbl_804D6070 = 12.0F
static

◆ lbl_804D6074

float lbl_804D6074 = 12.0F
static

◆ lbl_804D6078

u8 lbl_804D6078 = 12
static

◆ lbl_80408898

GlyphEntry lbl_80408898[4]
Initial value:
= {
{ 0x10808000, hsd_80392194 },
{ 0x46808000, hsd_80392194 },
{ 0x7C808000, hsd_80392194 },
{ 0xB3808000, hsd_80392194 },
}
void hsd_80392194(u8 *dst, s32 flags, s32 unused1, s32 unused2, const u8 *src)
Definition hsd_3915.c:392

◆ HSD_DebugFontAtlas

DebugFontGlyph HSD_DebugFontAtlas[]
Initial value:
= {
}