SSBM Decomp
Loading...
Searching...
No Matches
forward.h
Go to the documentation of this file.
1
#ifndef SYSDOLPHIN_BASELIB_FORWARD_H
2
#define SYSDOLPHIN_BASELIB_FORWARD_H
3
4
#include <
platform.h
>
5
6
typedef
struct
_GObjFuncs
GObjFuncs
;
7
typedef
struct
HSD_AnimJoint
HSD_AnimJoint
;
8
typedef
struct
HSD_AObj
HSD_AObj
;
9
typedef
struct
HSD_AObjDesc
HSD_AObjDesc
;
10
typedef
struct
HSD_Archive
HSD_Archive
;
11
typedef
struct
HSD_ArchiveExternInfo
HSD_ArchiveExternInfo
;
12
typedef
struct
HSD_ArchiveHeader
HSD_ArchiveHeader
;
13
typedef
struct
HSD_ArchivePublicInfo
HSD_ArchivePublicInfo
;
14
typedef
struct
HSD_ArchiveRelocationInfo
HSD_ArchiveRelocationInfo
;
15
typedef
struct
HSD_ByteCodeExpDesc
HSD_ByteCodeExpDesc
;
16
typedef
struct
HSD_CameraAnim
HSD_CameraAnim
;
17
typedef
struct
HSD_CameraDescCommon
HSD_CameraDescCommon
;
18
typedef
struct
HSD_CameraDescFrustum
HSD_CameraDescFrustum
;
19
typedef
struct
HSD_CameraDescPerspective
HSD_CameraDescPerspective
;
20
typedef
struct
HSD_CObj
HSD_CObj
;
21
typedef
struct
HSD_CObjInfo
HSD_CObjInfo
;
22
typedef
struct
HSD_DevCom
HSD_DevCom
;
23
typedef
struct
HSD_DObj
HSD_DObj
;
24
typedef
struct
HSD_DObjDesc
HSD_DObjDesc
;
25
typedef
struct
HSD_DObjInfo
HSD_DObjInfo
;
26
typedef
struct
HSD_Envelope
HSD_Envelope
;
27
typedef
struct
HSD_EnvelopeDesc
HSD_EnvelopeDesc
;
28
typedef
struct
HSD_Exp
HSD_Exp
;
29
typedef
struct
HSD_ExpDesc
HSD_ExpDesc
;
30
typedef
struct
_HSD_FObj
HSD_FObj
;
31
typedef
struct
HSD_Fog
HSD_Fog
;
32
typedef
struct
HSD_FogAdj
HSD_FogAdj
;
33
typedef
struct
HSD_FogAdjDesc
HSD_FogAdjDesc
;
34
typedef
struct
HSD_FogAdjInfo
HSD_FogAdjInfo
;
35
typedef
struct
HSD_FogDesc
HSD_FogDesc
;
36
typedef
struct
HSD_FogInfo
HSD_FogInfo
;
37
typedef
struct
HSD_Generator
HSD_Generator
;
38
typedef
struct
HSD_GObj
HSD_GObj
;
39
typedef
struct
HSD_GObjProc
HSD_GObjProc
;
40
typedef
struct
HSD_Hash
HSD_Hash
;
41
typedef
struct
HSD_HashEntry
HSD_HashEntry
;
42
typedef
struct
HSD_IKHint
HSD_IKHint
;
43
typedef
struct
HSD_IKHintDesc
HSD_IKHintDesc
;
44
typedef
struct
HSD_ImageDesc
HSD_ImageDesc
;
45
typedef
struct
HSD_JObj
HSD_JObj
;
46
typedef
struct
HSD_Joint
HSD_Joint
;
47
typedef
struct
HSD_LightAnim
HSD_LightAnim
;
48
typedef
struct
HSD_LightAttn
HSD_LightAttn
;
49
typedef
struct
HSD_LightDesc
HSD_LightDesc
;
50
typedef
struct
HSD_LightPoint
HSD_LightPoint
;
51
typedef
struct
HSD_LightPointDesc
HSD_LightPointDesc
;
52
typedef
struct
HSD_LightSpot
HSD_LightSpot
;
53
typedef
struct
HSD_LightSpotDesc
HSD_LightSpotDesc
;
54
typedef
struct
HSD_LObj
HSD_LObj
;
55
typedef
struct
HSD_LObjInfo
HSD_LObjInfo
;
56
typedef
struct
HSD_MatAnimJoint
HSD_MatAnimJoint
;
57
typedef
struct
HSD_Material
HSD_Material
;
58
typedef
struct
HSD_MObj
HSD_MObj
;
59
typedef
struct
HSD_MObjInfo
HSD_MObjInfo
;
60
typedef
struct
HSD_Obj
HSD_Obj
;
61
typedef
struct
HSD_PadData
HSD_PadData
;
62
typedef
struct
HSD_PadRumbleListData
HSD_PadRumbleListData
;
63
typedef
struct
HSD_PadStatus
HSD_PadStatus
;
64
typedef
struct
HSD_Particle
HSD_Particle
;
65
typedef
struct
HSD_PEDesc
HSD_PEDesc
;
66
typedef
struct
HSD_PObj
HSD_PObj
;
67
typedef
struct
HSD_PObjDesc
HSD_PObjDesc
;
68
typedef
struct
HSD_PObjInfo
HSD_PObjInfo
;
69
typedef
struct
HSD_psAppSRT
HSD_psAppSRT
;
70
typedef
struct
HSD_RObj
HSD_RObj
;
71
typedef
struct
HSD_RObjAnimJoint
HSD_RObjAnimJoint
;
72
typedef
struct
HSD_RObjDesc
HSD_RObjDesc
;
73
typedef
struct
HSD_RumbleData
HSD_RumbleData
;
74
typedef
struct
HSD_Rvalue
HSD_Rvalue
;
75
typedef
struct
HSD_RvalueList
HSD_RvalueList
;
76
typedef
struct
HSD_Shadow
HSD_Shadow
;
77
typedef
struct
HSD_ShapeAnim
HSD_ShapeAnim
;
78
typedef
struct
HSD_ShapeAnimDObj
HSD_ShapeAnimDObj
;
79
typedef
struct
HSD_ShapeAnimJoint
HSD_ShapeAnimJoint
;
80
typedef
struct
HSD_ShapeSet
HSD_ShapeSet
;
81
typedef
struct
HSD_ShapeSetDesc
HSD_ShapeSetDesc
;
82
typedef
struct
HSD_SM
HSD_SM
;
83
typedef
struct
HSD_SObj_803A477C_t
HSD_SObj_803A477C_t
;
84
typedef
struct
HSD_Spline
HSD_Spline
;
85
typedef
struct
HSD_TExpDag
HSD_TExpDag
;
86
typedef
struct
HSD_TExpRes
HSD_TExpRes
;
87
typedef
struct
HSD_Text
HSD_Text
;
88
typedef
struct
HSD_TObj
HSD_TObj
;
89
typedef
struct
HSD_ViewingRect
HSD_ViewingRect
;
90
typedef
struct
HSD_VtxDescList
HSD_VtxDescList
;
91
typedef
struct
HSD_WObj
HSD_WObj
;
92
typedef
struct
HSD_WObjAnim
HSD_WObjAnim
;
93
typedef
struct
HSD_WObjDesc
HSD_WObjDesc
;
94
typedef
struct
HSD_WObjInfo
HSD_WObjInfo
;
95
typedef
struct
PadLibData
PadLibData
;
96
typedef
struct
RumbleCommand
RumbleCommand
;
97
typedef
struct
RumbleInfo
RumbleInfo
;
98
typedef
struct
sislib_UnkAlloc3
sislib_UnkAlloc3
;
99
typedef
struct
sislib_UnkAllocData
sislib_UnkAllocData
;
100
typedef
struct
TextKerning
TextKerning
;
101
typedef
union
HSD_CObjDesc
HSD_CObjDesc
;
102
typedef
union
HSD_ObjData
HSD_ObjData
;
103
typedef
union
HSD_Rumble
HSD_Rumble
;
104
typedef
union
HSD_TExp
HSD_TExp
;
105
106
typedef
void (*
GObj_RenderFunc
)(
HSD_GObj
* gobj,
int
code);
107
typedef
void (*
HSD_ObjUpdateFunc
)(
void
*
obj
,
enum_t
type
,
HSD_ObjData
* fval);
108
typedef
void (*
HSD_DevComCallback
)(
void
*, int,
void
*,
bool
cancelflag);
109
typedef
void (*
HSD_GObjEvent
)(
HSD_GObj
* gobj);
110
typedef
void (*
HSD_UserDataEvent
)(
void
* user_data);
111
typedef
bool
(*
HSD_GObjPredicate
)(
HSD_GObj
* gobj);
112
typedef
void (*
HSD_GObjInteraction
)(
HSD_GObj
* gobj0,
HSD_GObj
* gobj1);
113
typedef
void (*
HSD_MObjSetupFunc
)(
HSD_MObj
* mobj, u32 rendermode);
114
115
#define HSD_A_S_W0 2
116
#define HSD_DEFAULT_MAX_SHAPE_VERTICES 2000
117
#define HSD_DEFAULT_MAX_SHAPE_NORMALS 2000
118
119
#define POBJ_ANIM (1 << 3)
120
#define POBJ_SKIN (0 << 12)
121
#define POBJ_SHAPEANIM (1 << 12)
122
#define POBJ_ENVELOPE (2 << 12)
123
124
#define pobj_type(o) (o->flags & 0x3000)
125
126
#define POBJ_CULLFRONT (1 << 14)
127
#define POBJ_CULLBACK (1 << 15)
128
129
#define SHAPESET_AVERAGE 1
130
#define SHAPESET_ADDITIVE 1 << 1
131
132
typedef
enum
PObjSetupFlag
{
133
SETUP_NORMAL
= 1,
134
SETUP_REFLECTION
= 2,
135
SETUP_HIGHLIGHT
= 4,
136
SETUP_NORMAL_PROJECTION
= 6,
137
SETUP_JOINT0
= 1,
138
SETUP_JOINT1
= 2,
139
SETUP_NONE
= 0
140
}
PObjSetupFlag
;
141
142
typedef
enum
HSD_TrspMask
{
143
HSD_TRSP_OPA
= 1,
144
HSD_TRSP_XLU
= 2,
145
HSD_TRSP_TEXEDGE
= 4,
146
HSD_TRSP_ALL
= 7,
147
}
HSD_TrspMask
;
148
149
#define HSD_A_L_LITC_R 9
150
#define HSD_A_L_LITC_G 10
151
#define HSD_A_L_LITC_B 11
152
#define HSD_A_L_VIS 12
153
#define HSD_A_L_A0 13
154
#define HSD_A_L_A1 14
155
#define HSD_A_L_A2 15
156
#define HSD_A_L_K0 16
157
#define HSD_A_L_K1 17
158
#define HSD_A_L_K2 18
159
#define HSD_A_L_CUTOFF 19
160
#define HSD_A_L_REFDIST 20
161
#define HSD_A_L_REFBRIGHT 21
162
#define HSD_A_L_LITC_A 22
163
164
#define LOBJ_AMBIENT (0 << 0)
165
#define LOBJ_INFINITE (1 << 0)
166
#define LOBJ_POINT (2 << 0)
167
#define LOBJ_SPOT (3 << 0)
168
#define LOBJ_DIFFUSE (1 << 2)
169
#define LOBJ_SPECULAR (1 << 3)
170
#define LOBJ_ALPHA (1 << 4)
171
#define LOBJ_HIDDEN (1 << 5)
172
#define LOBJ_RAW_PARAM (1 << 6)
173
#define LOBJ_DIFF_DIRTY (1 << 7)
174
#define LOBJ_SPEC_DIRTY (1 << 8)
175
176
#define LOBJ_TYPE_MASK 3
177
178
#define LOBJ_LIGHT_ATTN_NONE 0
179
#define LOBJ_LIGHT_ATTN 1
180
181
#endif
platform.h
enum_t
int enum_t
The underlying type of an enum, used as a placeholder.
Definition
platform.h:9
obj
void * obj
Definition
pobj.c:43
bool
int bool
A signed integer used to contain boolean values.
Definition
stdbool.h:8
GObjFuncs
Definition
gobj.h:49
HSD_AObjDesc
Definition
aobj.h:51
HSD_AObj
Definition
aobj.h:41
HSD_AnimJoint
Definition
aobj.h:58
HSD_ArchiveExternInfo
Definition
archive.h:29
HSD_ArchiveHeader
Definition
archive.h:10
HSD_ArchivePublicInfo
Definition
archive.h:24
HSD_ArchiveRelocationInfo
Definition
archive.h:20
HSD_Archive
Definition
archive.h:34
HSD_ByteCodeExpDesc
Definition
robj.h:55
HSD_CObjInfo
Definition
cobj.h:134
HSD_CObj
Definition
cobj.h:39
HSD_CameraAnim
Definition
cobj.h:139
HSD_CameraDescCommon
Definition
cobj.h:78
HSD_CameraDescFrustum
Definition
cobj.h:92
HSD_CameraDescPerspective
Definition
cobj.h:110
HSD_DObjDesc
Definition
dobj.h:26
HSD_DObjInfo
Definition
dobj.h:33
HSD_DObj
Definition
dobj.h:17
HSD_DevCom
Definition
devcom.h:13
HSD_EnvelopeDesc
Definition
pobj.h:70
HSD_Envelope
Definition
pobj.h:64
HSD_ExpDesc
Definition
robj.h:50
HSD_Exp
Definition
robj.h:40
HSD_FObj
Definition
fobj.h:33
HSD_FogAdjDesc
Definition
fog.h:31
HSD_FogAdjInfo
Definition
fog.h:41
HSD_FogAdj
Definition
fog.h:13
HSD_FogDesc
Definition
fog.h:45
HSD_FogInfo
Definition
fog.h:37
HSD_Fog
Definition
fog.h:21
HSD_GObjProc
Definition
gobjproc.h:8
HSD_GObj
was using this to try and fix some matches, unsuccessfully
Definition
gobj.h:26
HSD_Generator
Definition
psstructs.h:258
HSD_HashEntry
Definition
hash.h:12
HSD_Hash
Definition
hash.h:28
HSD_IKHintDesc
Definition
robj.h:35
HSD_IKHint
Definition
robj.h:30
HSD_ImageDesc
Definition
tobj.h:205
HSD_JObj
Definition
jobj.h:107
HSD_Joint
Definition
jobj.h:130
HSD_LObjInfo
Definition
lobj.h:104
HSD_LObj
Definition
lobj.h:57
HSD_LightAnim
Definition
lobj.h:97
HSD_LightAttn
Definition
lobj.h:48
HSD_LightDesc
Definition
lobj.h:80
HSD_LightPointDesc
Definition
lobj.h:26
HSD_LightPoint
Definition
lobj.h:18
HSD_LightSpotDesc
Definition
lobj.h:40
HSD_LightSpot
Definition
lobj.h:32
HSD_MObjInfo
Definition
mobj.h:142
HSD_MObj
Definition
mobj.h:71
HSD_MatAnimJoint
Definition
mobj.h:136
HSD_Material
Definition
mobj.h:82
HSD_Obj
Definition
object.h:60
HSD_PEDesc
Definition
mobj.h:90
HSD_PObjDesc
Definition
pobj.h:40
HSD_PObjInfo
Definition
pobj.h:113
HSD_PObj
Definition
pobj.h:24
HSD_PadData
Definition
controller.h:22
HSD_PadRumbleListData
Definition
rumble.h:34
HSD_PadStatus
Definition
controller.h:26
HSD_Particle
Definition
psstructs.h:117
HSD_RObjAnimJoint
Definition
robj.h:85
HSD_RObjDesc
Definition
robj.h:72
HSD_RObj
Definition
robj.h:60
HSD_RumbleData
Definition
rumble.h:10
HSD_RvalueList
Definition
robj.h:25
HSD_Rvalue
Definition
robj.h:19
HSD_SM
Definition
axdriver.h:21
HSD_SObj_803A477C_t
Definition
sobjlib.h:11
HSD_Shadow
Definition
shadow.h:16
HSD_ShapeAnimDObj
Definition
dobj.h:39
HSD_ShapeAnimJoint
Definition
pobj.h:107
HSD_ShapeAnim
Definition
pobj.h:102
HSD_ShapeSetDesc
Definition
pobj.h:91
HSD_ShapeSet
Definition
pobj.h:75
HSD_Spline
Definition
spline.h:11
HSD_TExpDag
Definition
texpdag.h:11
HSD_TExpRes
Definition
texp.h:84
HSD_TObj
Definition
tobj.h:134
HSD_Text
Definition
sislib.h:37
HSD_ViewingRect
Definition
shadow.h:29
HSD_VtxDescList
Definition
pobj.h:54
HSD_WObjAnim
Definition
wobj.h:33
HSD_WObjDesc
Definition
wobj.h:22
HSD_WObjInfo
Definition
wobj.h:28
HSD_WObj
Definition
wobj.h:14
HSD_psAppSRT
Definition
psstructs.h:88
PadLibData
Definition
controller.h:53
RumbleCommand
Definition
rumble.h:18
RumbleInfo
Definition
rumble.h:28
TextKerning
Definition
sislib.h:20
sislib_UnkAlloc3
Definition
sislib.h:87
sislib_UnkAllocData
Definition
sislib.h:31
HSD_DevComCallback
void(* HSD_DevComCallback)(void *, int, void *, bool cancelflag)
Definition
forward.h:108
HSD_GObjInteraction
void(* HSD_GObjInteraction)(HSD_GObj *gobj0, HSD_GObj *gobj1)
Definition
forward.h:112
HSD_GObjEvent
void(* HSD_GObjEvent)(HSD_GObj *gobj)
Definition
forward.h:109
HSD_MObjSetupFunc
void(* HSD_MObjSetupFunc)(HSD_MObj *mobj, u32 rendermode)
Definition
forward.h:113
HSD_ObjUpdateFunc
void(* HSD_ObjUpdateFunc)(void *obj, enum_t type, HSD_ObjData *fval)
Definition
forward.h:107
PObjSetupFlag
PObjSetupFlag
Definition
forward.h:132
SETUP_HIGHLIGHT
@ SETUP_HIGHLIGHT
Definition
forward.h:135
SETUP_JOINT1
@ SETUP_JOINT1
Definition
forward.h:138
SETUP_REFLECTION
@ SETUP_REFLECTION
Definition
forward.h:134
SETUP_JOINT0
@ SETUP_JOINT0
Definition
forward.h:137
SETUP_NORMAL
@ SETUP_NORMAL
Definition
forward.h:133
SETUP_NONE
@ SETUP_NONE
Definition
forward.h:139
SETUP_NORMAL_PROJECTION
@ SETUP_NORMAL_PROJECTION
Definition
forward.h:136
HSD_TrspMask
HSD_TrspMask
Definition
forward.h:142
HSD_TRSP_OPA
@ HSD_TRSP_OPA
Definition
forward.h:143
HSD_TRSP_XLU
@ HSD_TRSP_XLU
Definition
forward.h:144
HSD_TRSP_ALL
@ HSD_TRSP_ALL
Definition
forward.h:146
HSD_TRSP_TEXEDGE
@ HSD_TRSP_TEXEDGE
Definition
forward.h:145
HSD_GObjPredicate
bool(* HSD_GObjPredicate)(HSD_GObj *gobj)
Definition
forward.h:111
GObj_RenderFunc
void(* GObj_RenderFunc)(HSD_GObj *gobj, int code)
Definition
forward.h:106
HSD_UserDataEvent
void(* HSD_UserDataEvent)(void *user_data)
Definition
forward.h:110
HSD_CObjDesc
Definition
cobj.h:126
HSD_ObjData
Definition
fobj.h:65
HSD_Rumble
Definition
rumble.h:23
HSD_TExp
Definition
texp.h:168
HSD_TExp::type
HSD_TExpType type
Definition
texp.h:169
src
sysdolphin
baselib
forward.h
Generated by
1.9.8