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 <lib/nw4r/lyt/lyt_layout.hpp>
6#include <lib/nw4r/lyt/lyt_resource.hpp>
7#include <lib/nw4r/lyt/lyt_draw_info.hpp>
8#include <lib/nw4r/math/vec.hpp>
9
10namespace d2d {
11
12/// @unofficial
13struct ClipSettings {
14 ClipSettings() : mPos(0.0f, 0.0f), mSize(0.0f, 0.0f), mEnabled(false) {}
15
16 ClipSettings &operator=(const ClipSettings &other) {
17 mPos = other.mPos;
18 mSize = other.mSize;
19 mEnabled = other.mEnabled;
20 return *this;
21 }
22
23 mVec2_c mPos;
24 mVec2_c mSize;
25 bool mEnabled;
26};
27
28class Multi_c : public m2d::Base_c {
29public:
30 virtual ~Multi_c();
31 virtual void draw();
32 virtual void calc();
33 virtual bool build(const char *, ResAccMult_c *);
34
35 void entry();
36 nw4r::lyt::Pane *getRootPane();
37
38private:
39 nw4r::lyt::Layout mLayout;
40 nw4r::lyt::DrawInfo mDrawInfo;
41
42public:
43 ResAccMult_c *mpResAccessor;
44 mVec2_c mPos;
45
46 ClipSettings mClipSettings;
47
48private:
49 u32 mFlags;
50 u32 mUnknown_98;
51};
52
53} // namespace d2d
A two-dimensional floating point vector.
Definition m_vec.hpp:9