NSMBW-Decomp
A decompilation of New Super Mario Bros. Wii
Loading...
Searching...
No Matches
res_mdl.hpp
1#pragma once
2
3#include <types.h>
4#include <lib/nw4r/g3d/res_node.hpp>
5#include <lib/rvl/gx/GX.h>
6
7namespace nw4r {
8namespace g3d {
9
11public:
12 void GXSetTevColor(GXTevRegID, GXColor);
13 void GXSetTevKColor(GXTevKColorID, GXColor);
14 void DCStore(bool);
15
16 u32 val;
17};
18
20public:
21 void SetLightSetIdx(int);
22
23 u32 smth;
24};
25
26class ResMat {
27public:
28 ResMatTevColor GetResMatTevColor() {
30 col.val = (((num != 0) ? ((int) this + num) : 0)) + 0x20; // :thonk:
31 return col;
32 }
33
34 char pad[0x3c];
35 u32 num;
36};
37
38class ResMdl {
39public:
40 struct data {
41 char pad[0x20];
42 u16 x20;
43 int x24;
44 };
45 data *p;
46
47 int GetResNodeNumEntries() const;
48 int GetResMatNumEntries() const;
49 ResNode GetResNode(char const *) const;
50 ResMat *GetResMat(unsigned long) const;
51
52 bool IsValid() const { return p != nullptr; }
53};
54
55} // namespace g3d
56} // namespace nw4r
struct _GXColor GXColor
A 32-bit RGBA color.
3D graphics drawing library.
Definition docgroup.h:10