7 #define ENVFX_MODE_NONE 0 // no effects 8 #define ENVFX_SNOW_NORMAL 1 // CCM, SL 9 #define ENVFX_SNOW_WATER 2 // Secret Aquarium, Sunken Ship 10 #define ENVFX_SNOW_BLIZZARD 3 // unused 12 #define ENVFX_BUBBLE_START 10 // Separates snow effects and flower/bubble effects 14 #define ENVFX_FLOWERS 11 // unused 15 #define ENVFX_LAVA_BUBBLES 12 // LLL, BitFS, Bowser 2 16 #define ENVFX_WHIRLPOOL_BUBBLES 13 // DDD 17 #define ENVFX_JETSTREAM_BUBBLES 14 // JRB, DDD (submarine area) 47 #endif // ENVFX_SNOW_H struct SnowFlakeVertex gSnowFlakeVertex2
Definition: envfx_snow.c:49
signed char s8
Definition: ultratypes.h:11
s8 filler20[56 - 0x20]
Definition: envfx_snow.h:29
signed short int s16
Definition: ultratypes.h:13
Gfx * envfx_update_particles(s32 snowMode, Vec3s marioPos, Vec3s camTo, Vec3s camFrom)
Updates the environment effects (snow, flowers, bubbles) and returns a display list drawing them...
Definition: envfx_snow.c:451
s16 gSnowParticleMaxCount
Definition: envfx_snow.c:36
This file contains the function that handles 'environment effects', which are particle effects relate...
Definition: envfx_snow.c:27
s32 angleAndDist[2]
Definition: envfx_snow.h:26
s16 Vec3s[3]
Definition: types.h:24
void rotate_triangle_vertices(Vec3s vertex1, Vec3s vertex2, Vec3s vertex3, s16 pitch, s16 yaw)
Rotates the input vertices according to the give pitch and yaw.
Definition: envfx_snow.c:296
s8 isAlive
Definition: envfx_snow.h:20
UNUSED s32 D_80330644
Definition: envfx_snow.c:40
Definition: envfx_snow.h:19
void orbit_from_positions(Vec3s from, Vec3s to, s16 *radius, s16 *pitch, s16 *yaw)
Given two points, return the vector from one to the other represented as euler angles and a length...
Definition: envfx_snow.c:141
struct SnowFlakeVertex gSnowFlakeVertex3
Definition: envfx_snow.c:50
Vec3i gSnowCylinderLastPos
Definition: envfx_snow.c:34
s32 xPos
Definition: envfx_snow.h:23
s16 animFrame
Definition: envfx_snow.h:22
s32 Vec3i[3]
Definition: types.h:25
s32 yPos
Definition: envfx_snow.h:24
s8 gEnvFxMode
Definition: envfx_snow.c:39
s32 unusedBubbleVar
Definition: envfx_snow.h:27
struct SnowFlakeVertex gSnowFlakeVertex1
Definition: envfx_snow.c:48
s32 zPos
Definition: envfx_snow.h:25
s16 gSnowParticleCount
Definition: envfx_snow.c:35
#define UNUSED
Definition: macros.h:13
struct EnvFxParticle * gEnvFxBuffer
Definition: envfx_snow.c:33
signed int s32
Definition: ultratypes.h:15
s32 bubbleY
Definition: envfx_snow.h:28