Super Mario 64 Source
A Super Mario 64 decompilation, brought to you by a bunch of clever folks.
Macros | Functions | Variables
envfx_bubbles.h File Reference
#include "types.h"

Go to the source code of this file.

Macros

#define ENVFX_STATE_UNUSED   0
 
#define ENVFX_STATE_SRC_X   1
 
#define ENVFX_STATE_SRC_Y   2
 
#define ENVFX_STATE_SRC_Z   3
 
#define ENVFX_STATE_DEST_X   4
 
#define ENVFX_STATE_DEST_Y   5
 
#define ENVFX_STATE_DEST_Z   6
 
#define ENVFX_STATE_PARTICLECOUNT   7
 
#define ENVFX_STATE_PITCH   8
 
#define ENVFX_STATE_YAW   9
 

Functions

Gfxenvfx_update_bubbles (s32 sp28, Vec3s sp2C, Vec3s sp30, Vec3s sp34)
 Update bubble-like environment effects. More...
 

Variables

s16 gEnvFxBubbleConfig [10]
 This file implements environment effects that are not snow: Flowers (unused), lava bubbles and jetsream/whirlpool bubbles. More...
 

Macro Definition Documentation

◆ ENVFX_STATE_DEST_X

#define ENVFX_STATE_DEST_X   4

◆ ENVFX_STATE_DEST_Y

#define ENVFX_STATE_DEST_Y   5

◆ ENVFX_STATE_DEST_Z

#define ENVFX_STATE_DEST_Z   6

◆ ENVFX_STATE_PARTICLECOUNT

#define ENVFX_STATE_PARTICLECOUNT   7

◆ ENVFX_STATE_PITCH

#define ENVFX_STATE_PITCH   8

◆ ENVFX_STATE_SRC_X

#define ENVFX_STATE_SRC_X   1

◆ ENVFX_STATE_SRC_Y

#define ENVFX_STATE_SRC_Y   2

◆ ENVFX_STATE_SRC_Z

#define ENVFX_STATE_SRC_Z   3

◆ ENVFX_STATE_UNUSED

#define ENVFX_STATE_UNUSED   0

◆ ENVFX_STATE_YAW

#define ENVFX_STATE_YAW   9

Function Documentation

◆ envfx_update_bubbles()

Gfx* envfx_update_bubbles ( s32  mode,
Vec3s  marioPos,
Vec3s  camTo,
Vec3s  camFrom 
)

Update bubble-like environment effects.

Assumes the mode is larger than 10, lower modes are snow effects which are updated in a different function. Returns a display list drawing the particles.

Variable Documentation

◆ gEnvFxBubbleConfig

s16 gEnvFxBubbleConfig[10]

This file implements environment effects that are not snow: Flowers (unused), lava bubbles and jetsream/whirlpool bubbles.

Refer to 'envfx_snow.c' for more info about environment effects. Note that the term 'bubbles' is used as a collective name for effects in this file even though flowers aren't bubbles. For the sake of concise naming, flowers fall under bubbles.