SSBM Decomp
Loading...
Searching...
No Matches
fog.h
Go to the documentation of this file.
1#ifndef SYSDOLPHIN_BASELIB_FOG_H
2#define SYSDOLPHIN_BASELIB_FOG_H
3
4#include <platform.h>
5
6#include "baselib/forward.h" // IWYU pragma: export
7
8#include "baselib/object.h"
9
10#include <dolphin/gx.h>
11#include <dolphin/mtx.h>
12
13struct HSD_FogAdj {
14 /* 0x00 */ HSD_Obj parent;
15 /* 0x08 */ s16 center;
16 /* 0x0A */ u16 width;
17 /* 0x0C */ Mtx44 mtx;
18 /* 0x3C */ HSD_AObj* aobj;
19};
20
21struct HSD_Fog {
22 /* 0x00 */ HSD_Obj parent;
23 /* 0x08 */ u32 type;
24 /* 0x0C */ HSD_FogAdj* fog_adj;
25 /* 0x10 */ f32 start;
26 /* 0x14 */ f32 end;
27 /* 0x18 */ GXColor color;
28 /* 0x1C */ HSD_AObj* aobj;
29};
30
32 /* 0x00 */ u16 center;
33 /* 0x02 */ u16 width;
34 /* 0x04 */ Mtx44 mtx;
35};
36
40
44
46 /* 0x00 */ u32 type;
48 /* 0x08 */ f32 start;
49 /* 0x0C */ f32 end;
50 /* 0x10 */ GXColor color;
51};
52
53void HSD_FogSet(HSD_Fog*);
57void HSD_FogReqAnimByFlags(HSD_Fog*, u32 flags, f32 frame);
58void FogUpdateFunc(void* obj, enum_t type, HSD_ObjData* fval);
60
63void HSD_Fog_8037DE7C(HSD_Fog* fog, HSD_AObjDesc* desc);
64void HSD_FogReqAnim(HSD_Fog* fog, f32 frame);
66
67#endif
void HSD_FogReqAnim(HSD_Fog *fog, f32 frame)
Definition fog.c:175
void FogUpdateFunc(void *obj, enum_t type, HSD_ObjData *fval)
Definition fog.c:195
void HSD_FogReqAnimByFlags(HSD_Fog *, u32 flags, f32 frame)
Definition fog.c:180
HSD_FogAdj * HSD_FogAdjLoadDesc(HSD_FogAdjDesc *)
Definition fog.c:135
HSD_FogAdj * HSD_FogAdjAlloc(void)
Definition fog.c:128
void HSD_FogSet(HSD_Fog *)
Definition fog.c:21
void HSD_FogAdjInit(HSD_FogAdj *, HSD_FogAdjDesc *)
Definition fog.c:143
HSD_Fog * HSD_FogLoadDesc(HSD_FogDesc *desc)
Definition fog.c:95
void HSD_FogInterpretAnim(HSD_Fog *fog)
Definition fog.c:188
HSD_Fog * HSD_FogAlloc(void)
Definition fog.c:88
void HSD_Fog_8037DE7C(HSD_Fog *fog, HSD_AObjDesc *desc)
Definition fog.c:165
void HSD_FogInit(HSD_Fog *, HSD_FogDesc *)
Definition fog.c:106
int enum_t
The underlying type of an enum, used as a placeholder.
Definition platform.h:9
void * obj
Definition pobj.c:43
Definition aobj.h:51
Definition aobj.h:41
Definition fog.h:31
u16 width
Definition fog.h:33
Mtx44 mtx
Definition fog.h:34
u16 center
Definition fog.h:32
Definition fog.h:41
HSD_ObjInfo parent
Definition fog.h:42
Definition fog.h:13
u16 width
Definition fog.h:16
HSD_AObj * aobj
Definition fog.h:18
Mtx44 mtx
Definition fog.h:17
s16 center
Definition fog.h:15
HSD_Obj parent
Definition fog.h:14
Definition fog.h:45
f32 start
Definition fog.h:48
GXColor color
Definition fog.h:50
f32 end
Definition fog.h:49
u32 type
Definition fog.h:46
HSD_FogAdjDesc * fogadjdesc
Definition fog.h:47
Definition fog.h:37
HSD_ObjInfo parent
Definition fog.h:38
Definition fog.h:21
f32 end
Definition fog.h:26
HSD_AObj * aobj
Definition fog.h:28
HSD_FogAdj * fog_adj
Definition fog.h:24
GXColor color
Definition fog.h:27
HSD_Obj parent
Definition fog.h:22
u32 type
Definition fog.h:23
f32 start
Definition fog.h:25
Definition object.h:66
Definition object.h:60
Definition fobj.h:65