SSBM Decomp
Toggle main menu visibility
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 <
Runtime/platform.h
>
5
6
#include <
sysdolphin/baselib/forward.h
>
// IWYU pragma: export
7
8
#include <
dolphin/gx.h
>
9
#include <
dolphin/mtx.h
>
10
#include <
sysdolphin/baselib/object.h
>
11
12
struct
HSD_FogAdj
{
13
/* 0x00 */
HSD_Obj
parent
;
14
/* 0x08 */
s16
center
;
15
/* 0x0A */
u16
width
;
16
/* 0x0C */
Mtx44
mtx
;
17
/* 0x3C */
HSD_AObj
*
aobj
;
18
};
19
20
struct
HSD_Fog
{
21
/* 0x00 */
HSD_Obj
parent
;
22
/* 0x08 */
u32
type
;
23
/* 0x0C */
HSD_FogAdj
*
fog_adj
;
24
/* 0x10 */
f32
start
;
25
/* 0x14 */
f32
end
;
26
/* 0x18 */
GXColor
color
;
27
/* 0x1C */
HSD_AObj
*
aobj
;
28
};
29
30
struct
HSD_FogAdjDesc
{
31
/* 0x00 */
u16
center
;
32
/* 0x02 */
u16
width
;
33
/* 0x04 */
Mtx44
mtx
;
34
};
35
36
struct
HSD_FogInfo
{
37
HSD_ObjInfo
parent
;
38
};
39
40
struct
HSD_FogAdjInfo
{
41
HSD_ObjInfo
parent
;
42
};
43
44
struct
HSD_FogDesc
{
45
/* 0x00 */
u32
type
;
46
/* 0x04 */
HSD_FogAdjDesc
*
fogadjdesc
;
47
/* 0x08 */
f32
start
;
48
/* 0x0C */
f32
end
;
49
/* 0x10 */
GXColor
color
;
50
};
51
52
void
HSD_FogSet
(
HSD_Fog
*);
53
HSD_FogAdj
*
HSD_FogAdjLoadDesc
(
HSD_FogAdjDesc
*);
54
void
HSD_FogInit
(
HSD_Fog
*,
HSD_FogDesc
*);
55
void
HSD_FogAdjInit
(
HSD_FogAdj
*,
HSD_FogAdjDesc
*);
56
void
HSD_FogReqAnimByFlags
(
HSD_Fog
*,
u32
flags,
f32
frame);
57
void
FogUpdateFunc
(
void
*
obj
,
enum_t
type,
HSD_ObjData
*
fval
);
58
HSD_Fog
*
HSD_FogLoadDesc
(
HSD_FogDesc
*
desc
);
59
60
HSD_Fog
*
HSD_FogAlloc
(
void
);
61
HSD_FogAdj
*
HSD_FogAdjAlloc
(
void
);
62
void
HSD_Fog_8037DE7C
(
HSD_Fog
* fog,
HSD_AObjDesc
*
desc
);
63
void
HSD_FogReqAnim
(
HSD_Fog
* fog,
f32
frame);
64
void
HSD_FogInterpretAnim
(
HSD_Fog
* fog);
65
66
#endif
mtx.h
Mtx44
f32 Mtx44[4][4]
Definition
mtx.h:51
u32
unsigned long u32
Definition
types.h:9
s16
signed short int s16
Definition
types.h:6
f32
float f32
Definition
types.h:13
u16
unsigned short int u16
Definition
types.h:7
HSD_FogReqAnim
void HSD_FogReqAnim(HSD_Fog *fog, f32 frame)
Definition
fog.c:173
FogUpdateFunc
void FogUpdateFunc(void *obj, enum_t type, HSD_ObjData *fval)
Definition
fog.c:193
HSD_FogReqAnimByFlags
void HSD_FogReqAnimByFlags(HSD_Fog *, u32 flags, f32 frame)
Definition
fog.c:178
HSD_FogAdjLoadDesc
HSD_FogAdj * HSD_FogAdjLoadDesc(HSD_FogAdjDesc *)
Definition
fog.c:133
HSD_FogAdjAlloc
HSD_FogAdj * HSD_FogAdjAlloc(void)
Definition
fog.c:126
HSD_FogSet
void HSD_FogSet(HSD_Fog *)
Definition
fog.c:19
HSD_FogAdjInit
void HSD_FogAdjInit(HSD_FogAdj *, HSD_FogAdjDesc *)
Definition
fog.c:141
HSD_FogLoadDesc
HSD_Fog * HSD_FogLoadDesc(HSD_FogDesc *desc)
Definition
fog.c:93
HSD_FogInterpretAnim
void HSD_FogInterpretAnim(HSD_Fog *fog)
Definition
fog.c:186
HSD_FogAlloc
HSD_Fog * HSD_FogAlloc(void)
Definition
fog.c:86
HSD_Fog_8037DE7C
void HSD_Fog_8037DE7C(HSD_Fog *fog, HSD_AObjDesc *desc)
HSD_FogAddAnim ?
Definition
fog.c:163
HSD_FogInit
void HSD_FogInit(HSD_Fog *, HSD_FogDesc *)
Definition
fog.c:104
gx.h
desc
u8 desc[6][3]
Definition
mnruleplus.c:98
object.h
fval
#define fval
platform.h
enum_t
int enum_t
The underlying type of an enum, used as a placeholder.
Definition
platform.h:28
obj
void * obj
Definition
pobj.c:38
GXColor
Definition
GXStruct.h:29
HSD_AObjDesc
Definition
aobj.h:50
HSD_AObj
Definition
aobj.h:40
HSD_FogAdjDesc
Definition
fog.h:30
HSD_FogAdjDesc::width
u16 width
Definition
fog.h:32
HSD_FogAdjDesc::mtx
Mtx44 mtx
Definition
fog.h:33
HSD_FogAdjDesc::center
u16 center
Definition
fog.h:31
HSD_FogAdjInfo
Definition
fog.h:40
HSD_FogAdjInfo::parent
HSD_ObjInfo parent
Definition
fog.h:41
HSD_FogAdj
Definition
fog.h:12
HSD_FogAdj::width
u16 width
Definition
fog.h:15
HSD_FogAdj::aobj
HSD_AObj * aobj
Definition
fog.h:17
HSD_FogAdj::mtx
Mtx44 mtx
Definition
fog.h:16
HSD_FogAdj::center
s16 center
Definition
fog.h:14
HSD_FogAdj::parent
HSD_Obj parent
Definition
fog.h:13
HSD_FogDesc
Definition
fog.h:44
HSD_FogDesc::start
f32 start
Definition
fog.h:47
HSD_FogDesc::color
GXColor color
Definition
fog.h:49
HSD_FogDesc::end
f32 end
Definition
fog.h:48
HSD_FogDesc::type
u32 type
Definition
fog.h:45
HSD_FogDesc::fogadjdesc
HSD_FogAdjDesc * fogadjdesc
Definition
fog.h:46
HSD_FogInfo
Definition
fog.h:36
HSD_FogInfo::parent
HSD_ObjInfo parent
Definition
fog.h:37
HSD_Fog
Definition
fog.h:20
HSD_Fog::end
f32 end
Definition
fog.h:25
HSD_Fog::aobj
HSD_AObj * aobj
Definition
fog.h:27
HSD_Fog::fog_adj
HSD_FogAdj * fog_adj
Definition
fog.h:23
HSD_Fog::color
GXColor color
Definition
fog.h:26
HSD_Fog::parent
HSD_Obj parent
Definition
fog.h:21
HSD_Fog::type
u32 type
Definition
fog.h:22
HSD_Fog::start
f32 start
Definition
fog.h:24
HSD_ObjInfo
Definition
object.h:66
HSD_Obj
Definition
object.h:60
forward.h
HSD_ObjData
Definition
fobj.h:64
src
sysdolphin
baselib
fog.h
Generated by
1.17.0