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