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
10
namespace
d2d {
11
12
/// @unofficial
13
struct
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
28
class
Multi_c
:
public
m2d::Base_c
{
29
public
:
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
38
private
:
39
nw4r::lyt::Layout
mLayout;
40
nw4r::lyt::DrawInfo
mDrawInfo;
41
42
public
:
43
ResAccMult_c
*mpResAccessor;
44
mVec2_c
mPos;
45
46
ClipSettings
mClipSettings;
47
48
private
:
49
u32 mFlags;
50
u32 mUnknown_98;
51
};
52
53
}
// namespace d2d
d2d::Multi_c
Definition
d_2d.hpp:28
d2d::ResAccMult_c
Definition
d_resource.hpp:9
m2d::Base_c
Definition
base.hpp:7
mVec2_c
A two-dimensional floating point vector.
Definition
m_vec.hpp:9
nw4r::lyt::DrawInfo
Definition
lyt_draw_info.hpp:10
nw4r::lyt::Layout
Definition
lyt_layout.hpp:13
nw4r::lyt::Pane
Definition
lyt_pane.hpp:11
d2d::ClipSettings
Definition
d_2d.hpp:13
include
game
bases
d_2d.hpp
Made with ❤️ by
CLF78
and
RootCubed
. Logos by
Chasical
and
B1
. Website generated by
Doxygen
1.13.2