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
12namespace nw4r {
13namespace g3d {
14
15/******************************************************************************
16 *
17 * FogAnmResult
18 *
19 ******************************************************************************/
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 ******************************************************************************/
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
51class ResAnmFog : public ResCommon<ResAnmFogData> {
52public:
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
3D graphics drawing library.
Definition g3d_3dsmax.h:10