NSMBW-Decomp
A decompilation of New Super Mario Bros. Wii
Loading...
Searching...
No Matches
g3d_resanmfog.h
1
#ifndef NW4R_G3D_RES_RES_ANM_FOG_H
2
#define NW4R_G3D_RES_RES_ANM_FOG_H
3
#include <nw4r/types_nw4r.h>
4
5
#include <nw4r/g3d/res/g3d_resanm.h>
6
#include <nw4r/g3d/res/g3d_rescommon.h>
7
8
#include <nw4r/ut.h>
9
10
#include <revolution/GX.h>
11
12
namespace
nw4r {
13
namespace
g3d
{
14
15
/******************************************************************************
16
*
17
* FogAnmResult
18
*
19
******************************************************************************/
20
struct
FogAnmResult
{
21
GXFogType type;
// at 0x0
22
f32 startz;
// at 0x4
23
f32 endz;
// at 0x8
24
ut::Color
color;
// at 0xC
25
};
26
27
/******************************************************************************
28
*
29
* ResAnmFog
30
*
31
******************************************************************************/
32
struct
ResAnmFogData
{
33
enum
Flag {
34
FLAG_START_CONST = (1 << 29),
35
FLAG_END_CONST = (1 << 30),
36
FLAG_COLOR_CONST = (1 << 31)
37
};
38
39
ulong size;
// at 0x0
40
s32 toResAnmScnData;
// at 0x4
41
s32 name;
// at 0x8
42
ulong id;
// at 0xC
43
ulong refNumber;
// at 0x10
44
ulong flags;
// at 0x14
45
GXFogType type;
// at 0x18
46
ResAnmData
startz;
// at 0x1C
47
ResAnmData
endz;
// at 0x20
48
ResColorAnmData
color;
// at 0x24
49
};
50
51
class
ResAnmFog
:
public
ResCommon<ResAnmFogData> {
52
public
:
53
NW4R_G3D_RESOURCE_FUNC_DEF(
ResAnmFog
);
54
55
void
GetAnmResult(
FogAnmResult
* pResult, f32 frame)
const
;
56
57
ulong GetID()
const
{
58
return
ref().id;
59
}
60
};
61
62
}
// namespace g3d
63
}
// namespace nw4r
64
65
#endif
nw4r::g3d::ResAnmFog
Definition
g3d_resanmfog.h:51
nw4r::g3d
3D graphics drawing library.
Definition
g3d_3dsmax.h:10
nw4r::g3d::FogAnmResult
Definition
g3d_resanmfog.h:20
nw4r::g3d::ResAnmFogData
Definition
g3d_resanmfog.h:32
nw4r::ut::Color
Definition
ut_Color.h:10
nw4r::g3d::ResAnmData
Definition
g3d_resanm.h:39
nw4r::g3d::ResColorAnmData
Definition
g3d_resanm.h:77
include
lib
nw4r
g3d
res
g3d_resanmfog.h
Made with ❤️ by
CLF78
and
RootCubed
. Logos by
Chasical
and
B1
. Website generated by
Doxygen
1.13.2