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
7
namespace
nw4r {
8
namespace
g3d
{
9
10
class
ResMatTevColor
{
11
public
:
12
void
GXSetTevColor(GXTevRegID,
GXColor
);
13
void
GXSetTevKColor(GXTevKColorID,
GXColor
);
14
void
DCStore(
bool
);
15
16
u32 val;
17
};
18
19
class
ResMatMisc
{
20
public
:
21
void
SetLightSetIdx(
int
);
22
23
u32 smth;
24
};
25
26
class
ResMat
{
27
public
:
28
ResMatTevColor
GetResMatTevColor() {
29
ResMatTevColor
col;
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
38
class
ResMdl
{
39
public
:
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
nw4r::g3d::ResMatMisc
Definition
res_mdl.hpp:19
nw4r::g3d::ResMatTevColor
Definition
res_mdl.hpp:10
nw4r::g3d::ResMat
Definition
res_mdl.hpp:26
nw4r::g3d::ResMdl
Definition
res_mdl.hpp:38
nw4r::g3d::ResNode
Definition
res_node.hpp:8
GXColor
struct _GXColor GXColor
A 32-bit RGBA color.
nw4r::g3d
3D graphics drawing library.
Definition
docgroup.h:10
nw4r::g3d::ResMdl::data
Definition
res_mdl.hpp:40
include
lib
nw4r
g3d
res_mdl.hpp
Made with ❤️ by
CLF78
and
RootCubed
. Logos by
Chasical
and
B1
. Website generated by
Doxygen
1.13.2