2020-06-02 16:44:34 +00:00
|
|
|
#ifndef ENVFX_BUBBLES_H
|
|
|
|
#define ENVFX_BUBBLES_H
|
2019-08-25 04:46:40 +00:00
|
|
|
|
2020-06-02 16:44:34 +00:00
|
|
|
#include <PR/ultratypes.h>
|
|
|
|
#include <PR/gbi.h>
|
2019-08-25 04:46:40 +00:00
|
|
|
|
|
|
|
#define ENVFX_STATE_UNUSED 0
|
|
|
|
#define ENVFX_STATE_SRC_X 1 // whirlpool / jetsream bubble source position
|
|
|
|
#define ENVFX_STATE_SRC_Y 2
|
|
|
|
#define ENVFX_STATE_SRC_Z 3
|
|
|
|
#define ENVFX_STATE_DEST_X 4 // only for whirlpool, where bubbles get sucked in
|
|
|
|
#define ENVFX_STATE_DEST_Y 5
|
|
|
|
#define ENVFX_STATE_DEST_Z 6
|
|
|
|
#define ENVFX_STATE_PARTICLECOUNT 7
|
|
|
|
#define ENVFX_STATE_PITCH 8 // whirlpool can rotate around DEST point
|
|
|
|
#define ENVFX_STATE_YAW 9
|
|
|
|
|
|
|
|
// Used to communicate from whirlpool behavior to envfx
|
|
|
|
extern s16 gEnvFxBubbleConfig[10];
|
2020-06-02 16:44:34 +00:00
|
|
|
Gfx *envfx_update_bubbles(s32 mode, Vec3s marioPos, Vec3s camTo, Vec3s camFrom);
|
2019-08-25 04:46:40 +00:00
|
|
|
|
2020-06-02 16:44:34 +00:00
|
|
|
#endif // ENVFX_BUBBLES_H
|