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
6namespace nw4r {
7namespace lyt {
8
9class GXColorS10 {
10public:
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
25class Material {
26public:
27 virtual ~Material();
28
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
2D graphics drawing library.
A 32-bit RGBA color.
Definition color.hpp:8