|
SSBM Decomp
|
#include "psdisp.h"#include <string.h>#include "cobj.h"#include "fog.h"#include "forward.h"#include "lobj.h"#include "mtx.h"#include "particle.h"#include "psdisptev.h"#include "psstructs.h"#include "state.h"#include "tobj.h"#include "util.h"#include <dolphin/gx.h>Data Structures | |
| struct | psdisp_ParticleSortBucket |
| struct | psdisp_Mtx |
Macros | |
| #define | FLT_EPSILON 1.19209290e-07F |
Functions | |
| static void | calcTornadoLastPos (HSD_Particle *, f32 *, f32 *, f32 *) |
| static void | getColorPrimEnv (HSD_Particle *, GXColor *, GXColor *) |
| static void | getColorMatAmb (HSD_Particle *, GXColor *, GXColor *) |
| static u8 billboard_tex0_u8[] | ATTRIBUTE_ALIGN (32) |
| ASSERT_SIZE (billboard_tex0_u8, 0x20) | |
| ASSERT_SIZE (HSD_PSDisp_8040C360, 0x10) | |
| void | setVtxDesc (s32 fmt) |
| static void | getClrTrail (HSD_Particle *pp, GXColor *color) |
| static void | psSetColor (GXColor *color, u8 value) |
| static void | psSetupVtxFormat (GXVtxFmt format, bool has_color, bool has_texture, GXCompType texture_type) |
| static void | setupChanCtrl (HSD_Particle *pp) |
| static void | setupChanReg (HSD_Particle *pp) |
| static void | setupTevReg (HSD_Particle *pp) |
| HSD_Particle * | particleSort (s32 linkNo, u8 arg1, HSD_Particle **texEdge, HSD_Particle **xlu) |
| static HSD_Particle * | psDispSubPoint (HSD_Particle *pp) |
| static HSD_Particle * | psDispSubPointTrail (HSD_Particle *pp) |
| static void | setBlendMode (int blend_mode) |
| static void | psSetCurrentMtx (GXPosNrmMtx idx) |
| static void | psDispSubMakePolygon (HSD_Particle *pp, u8 *texform, f32 x, f32 y, f32 z, f32 x0, f32 y0, f32 z0, f32 x1, f32 y1, f32 z1, GXColor *color, f32 *prev_x, f32 *prev_y, f32 *prev_z) |
| static void | psMaskAbsF32 (f32 *value) |
| static bool | psMaskAbsLtF32 (f32 value, f32 limit) |
| static bool | psMaskAbsGtF32 (f32 value, f64 limit) |
| static bool | psAbsLtF32 (f32 value, f32 limit) |
| static bool | psAbsGtF32 (f32 value, f64 limit) |
| static bool | psDispSubAbsLtF32 (f32 value, f32 limit) |
| static bool | psDispSubAbsGtF32 (f32 value, f64 limit) |
| static void | psDispSub (HSD_Particle *pp, u8 *texform) |
| static void | psScaleAppSRTAxes (HSD_Particle *pp, Mtx mtx) |
| static void | psDispSubAPPSRTPoint (HSD_Particle *pp) |
| static void | psDispSubAppSRT (HSD_Particle *pp, u8 *texform) |
| static void | psUpdateBillboardAxes (const Mtx inv_view) |
| void | psDispParticles (u32 target_link, u32 sw) |
Variables | |
| static const psdisp_Mtx | HSD_PSDisp_803B9628 |
| static char | HSD_PSDisp_8040C300 [] = "object.h" |
| static char | HSD_PSDisp_8040C30C [] |
| static u8 | HSD_PSDisp_8040C334 [0xC] = { 0 } |
| static u8 | HSD_PSDisp_8040C360 [0x10] = { 0 } |
| static u8 | psFrameNum = 123 |
| HSD_Particle * | hsd_804D0908 [16] |
| static Mtx | vmtx |
| static Mtx | rvmtx |
| static f32 | prj [GX_PROJECTION_SZ] |
| static Mtx | pvmtx |
| static HSD_Particle * | particle_list [17] |
| static HSD_Fog * | particleFog |
| static s32 | prevPointSize |
| static s32 | prevLineWidth |
| static f32 | HSD_PSDisp_804D7914 |
| static f32 | HSD_PSDisp_804D7918 |
| static f32 | HSD_PSDisp_804D791C |
| static f32 | HSD_PSDisp_804D7920 |
| static f32 | HSD_PSDisp_804D7924 |
| static f32 | HSD_PSDisp_804D7928 |
| static s32 | HSD_PSDisp_804D792C |
| static s32 | prevChanCtrl |
| static GXColor | prevChanMat |
| static GXColor | prevChanAmb |
| static GXColor | prevColorPrim |
| static GXColor | prevColorEnv |
| static GXColor | prevColorMat |
| static s32 | HSD_PSDisp_804D7948 [2] |
| #define FLT_EPSILON 1.19209290e-07F |
|
static |
|
static |
|
static |
|
static |
| ASSERT_SIZE | ( | billboard_tex0_u8 | , |
| 0x20 | ) |
| ASSERT_SIZE | ( | HSD_PSDisp_8040C360 | , |
| 0x10 | ) |
| void setVtxDesc | ( | s32 | fmt | ) |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
| HSD_Particle * particleSort | ( | s32 | linkNo, |
| u8 | arg1, | ||
| HSD_Particle ** | texEdge, | ||
| HSD_Particle ** | xlu ) |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
GXWGFifo stores, not GXPosition3f32: the inline's argument evaluation forces an extra live FP register here and grows the frame past the target.
|
inlinestatic |
rvmtx directly swaps the first two axis loads.
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
extern |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |