NSMBW-Decomp
A decompilation of New Super Mario Bros. Wii
Loading...
Searching...
No Matches
lyt_material.hpp
1
#pragma once
2
3
#include <lib/nw4r/ut/detail/link_list_impl.hpp>
4
#include <lib/nw4r/ut/color.hpp>
5
6
namespace
nw4r {
7
namespace
lyt
{
8
9
class
GXColorS10 {
10
public
:
11
s16 r;
12
s16 g;
13
s16 b;
14
s16 a;
15
16
GXColorS10(s16 r, s16 g, s16 b, s16 a) : r(r), g(g), b(b), a(a) { }
17
GXColorS10(
const
nw4r::ut::Color
&color) {
18
r = color.r;
19
g = color.g;
20
b = color.b;
21
a = color.a;
22
}
23
};
24
25
class
Material
{
26
public
:
27
virtual
~Material
();
28
29
ut::detail::LinkListImpl
mAnimList;
30
GXColorS10
mTevCols[3];
31
nw4r::ut::Color
mTevKCols[4];
32
u32 mGXMemCap;
// [actually a bitfield]
33
u32 mGXMemNum;
// [actually a bitfield]
34
void
*mpGXMem;
35
char
mName[21];
36
bool
mbUserAllocated;
37
38
void
setTev(
int
index,
GXColorS10
color) {
39
mTevCols[index] = color;
40
}
41
};
42
43
}
// namespace lyt
44
}
// namespace nw4r
nw4r::lyt::GXColorS10
Definition
lyt_material.hpp:9
nw4r::lyt::Material
Definition
lyt_material.hpp:25
nw4r::ut::detail::LinkListImpl
Definition
link_list_impl.hpp:8
nw4r::lyt
2D graphics drawing library.
Definition
_dummy_classes.hpp:9
nw4r::ut::Color
A 32-bit RGBA color.
Definition
color.hpp:8
include
lib
nw4r
lyt
lyt_material.hpp
Made with ❤️ by
CLF78
and
RootCubed
. Logos by
Chasical
and
B1
. Website generated by
Doxygen
1.13.2