NSMBW-Decomp
A decompilation of New Super Mario Bros. Wii
Loading...
Searching...
No Matches
d_2d.hpp
1#pragma once
2#include <game/bases/d_resource.hpp>
3#include <game/mLib/m_2d/base.hpp>
4#include <game/mLib/m_vec.hpp>
5#include <nw4r/lyt.h>
6#include <nw4r/math.h>
7
8namespace d2d {
9
10/// @unofficial
11struct ClipSettings {
12 ClipSettings() : mPos(0.0f, 0.0f), mSize(0.0f, 0.0f), mEnabled(false) {}
13
14 ClipSettings &operator=(const ClipSettings &other) {
15 mPos = other.mPos;
16 mSize = other.mSize;
17 mEnabled = other.mEnabled;
18 return *this;
19 }
20
21 mVec2_c mPos;
22 mVec2_c mSize;
23 bool mEnabled;
24};
25
26class Multi_c : public m2d::Base_c {
27public:
28 virtual ~Multi_c();
29 virtual void draw();
30 virtual void calc();
31 virtual bool build(const char *, ResAccMult_c *);
32
33 void entry();
34 nw4r::lyt::Pane *getRootPane();
35
36private:
37 nw4r::lyt::Layout mLayout;
38 nw4r::lyt::DrawInfo mDrawInfo;
39
40public:
41 ResAccMult_c *mpResAccessor;
42 mVec2_c mPos;
43
44 ClipSettings mClipSettings;
45
46private:
47 u32 mFlags;
48 u32 mUnknown_98;
49};
50
51} // namespace d2d
A two-dimensional floating point vector.
Definition m_vec.hpp:9