SSBM Decomp
Loading...
Searching...
No Matches
particle.c File Reference
#include "particle.h"
#include "generator.h"
#include "particle.static.h"
#include <math.h>
#include <math_ppc.h>
#include <trigf.h>
#include <dolphin/gx.h>
#include <dolphin/gx/GXGeometry.h>
#include <dolphin/mcc.h>
#include <dolphin/os.h>
#include <dolphin/pad.h>
#include <dolphin/vi.h>
#include <baselib/cobj.h>
#include <baselib/gobj.h>
#include <baselib/gobjgxlink.h>
#include <baselib/gobjobject.h>
#include <baselib/list.h>
#include <baselib/memory.h>
#include <baselib/mtx.h>
#include <baselib/perf.h>
#include <baselib/psappsrt.h>
#include <baselib/psstructs.h>
#include <baselib/random.h>
#include <baselib/state.h>
#include <baselib/video.h>
#include <MetroTRK/ppc_reg.h>

Data Structures

struct  PerfDispItem
struct  PSNode
union  ParticleFloatBytes

Macros

#define fval   (*(f32*) &hsd_804D78D0)
#define fbytes   (*(ParticleFloatBytes*) &hsd_804D78D0).bytes

Functions

void hsd_803983A4 (HSD_Generator *gen)
void psInitDataBankLoad (int bank, int *cmdBank, int *texBank, u32 *ref, int *formBank)
void psInitDataBankLocate (HSD_Archive *cmdBank, HSD_Archive *texBank, int *formBank)
void psInitDataBank (int bank, int *cmdBank, int *texBank, u32 *ref, int *formBank)
void hsd_80398A08 (u32 unused)
HSD_Particlehsd_80398C04 (HSD_Particle **head, int linkNo, int bank, u32 kind, u16 texGroup, u8 *list, int life, int palflag, f32 x, f32 y, f32 z, f32 vx, f32 vy, f32 vz, f32 size, f32 grav, f32 fric, HSD_Generator *gp, int flgInterpret)
void hsd_80398F0C (s32 linkNo, s32 bank, s32 kind, u16 texGroup, s32 cmdList, s32 life, s32 zero, s32 gen, f32 pos_x, f32 pos_y, f32 pos_z, f32 vel_x, f32 vel_y, f32 vel_z, f32 fric, f32 rate, f32 angle3)
void hsd_80398F8C (HSD_Particle *pp, f32 angle)
s32 hsd_803991D8 (HSD_Generator *gen, HSD_JObj *jobj, f32 force, f32 range)
void * hsd_8039930C (void *pp_arg, void *prev_arg)
void hsd_8039CEAC (u32 mask)
void hsd_8039CF4C (s32 index, HSD_JObj *jobj)
void hsd_8039D048 (void *particle)
void hsd_8039D0A0 (HSD_Generator *gen)

Variables

static HSD_JObjhsd_804D08E8 [8]
static void * hsd_804D0908 [0x144/4]
static HSD_PSFormGroup ** psFormGroupArray [65]
static HSD_PSTexGroup ** psTexGroupArray [65]
static int psNumCmdList [65]
static HSD_PSCmdList ** psCmdListArray [65]
static u32ptclref_804D0E5C [65]
struct hsd_804D0F60_t hsd_804D0F60

Macro Definition Documentation

◆ fval

#define fval   (*(f32*) &hsd_804D78D0)

◆ fbytes

#define fbytes   (*(ParticleFloatBytes*) &hsd_804D78D0).bytes

Function Documentation

◆ hsd_803983A4()

void hsd_803983A4 ( HSD_Generator * gen)

◆ psInitDataBankLoad()

void psInitDataBankLoad ( int bank,
int * cmdBank,
int * texBank,
u32 * ref,
int * formBank )

◆ psInitDataBankLocate()

void psInitDataBankLocate ( HSD_Archive * cmdBank,
HSD_Archive * texBank,
int * formBank )

◆ psInitDataBank()

void psInitDataBank ( int bank,
int * cmdBank,
int * texBank,
u32 * ref,
int * formBank )

◆ hsd_80398A08()

void hsd_80398A08 ( u32 unused)

◆ hsd_80398C04()

HSD_Particle * hsd_80398C04 ( HSD_Particle ** head,
int linkNo,
int bank,
u32 kind,
u16 texGroup,
u8 * list,
int life,
int palflag,
f32 x,
f32 y,
f32 z,
f32 vx,
f32 vy,
f32 vz,
f32 size,
f32 grav,
f32 fric,
HSD_Generator * gp,
int flgInterpret )

◆ hsd_80398F0C()

void hsd_80398F0C ( s32 linkNo,
s32 bank,
s32 kind,
u16 texGroup,
s32 cmdList,
s32 life,
s32 zero,
s32 gen,
f32 pos_x,
f32 pos_y,
f32 pos_z,
f32 vel_x,
f32 vel_y,
f32 vel_z,
f32 fric,
f32 rate,
f32 angle3 )

◆ hsd_80398F8C()

void hsd_80398F8C ( HSD_Particle * pp,
f32 angle )

◆ hsd_803991D8()

s32 hsd_803991D8 ( HSD_Generator * gen,
HSD_JObj * jobj,
f32 force,
f32 range )

◆ hsd_8039930C()

void * hsd_8039930C ( void * pp_arg,
void * prev_arg )

◆ hsd_8039CEAC()

void hsd_8039CEAC ( u32 mask)

◆ hsd_8039CF4C()

void hsd_8039CF4C ( s32 index,
HSD_JObj * jobj )

◆ hsd_8039D048()

void hsd_8039D048 ( void * particle)

◆ hsd_8039D0A0()

void hsd_8039D0A0 ( HSD_Generator * gen)

Variable Documentation

◆ hsd_804D08E8

HSD_JObj* hsd_804D08E8[8]
static

◆ hsd_804D0908

void* hsd_804D0908[0x144/4]
static

◆ psFormGroupArray

HSD_PSFormGroup** psFormGroupArray[65]
static

◆ psTexGroupArray

HSD_PSTexGroup** psTexGroupArray[65]
static

◆ psNumCmdList

int psNumCmdList[65]
static

◆ psCmdListArray

HSD_PSCmdList** psCmdListArray[65]
static

◆ ptclref_804D0E5C

u32* ptclref_804D0E5C[65]
static

◆ hsd_804D0F60

struct hsd_804D0F60_t hsd_804D0F60