Twilight Princess
Decompilation of The Legend of Zelda: Twilight Princess
Loading...
Searching...
No Matches
drawInfo.h
Go to the documentation of this file.
1#ifndef NW4HBM_LYT_DRAW_INFO_H
2#define NW4HBM_LYT_DRAW_INFO_H
3
4#include <revolution/gx.h>
5
6#include "../math/types.h"
7
8#include "../ut/Rect.h"
9
10namespace nw4hbm {
11 namespace lyt {
12
13 class DrawInfo {
14 public:
15 DrawInfo();
16
17 /* 0x08 */ virtual ~DrawInfo();
18
19 void SetViewRect(const ut::Rect& rect) { mViewRect = rect; }
20
21 const math::MTX34& GetViewMtx() const { return mViewMtx; }
22 void SetViewMtx(const math::MTX34& value) { mViewMtx = value; }
23
26
27 bool IsMultipleViewMtxOnDraw() const { return mFlag.mulViewDraw; }
28 void SetMultipleViewMtxOnDraw(bool bEnable) { mFlag.mulViewDraw = bEnable; }
29
30 bool IsInfluencedAlpha() const { return mFlag.influencedAlpha; }
31 void SetInfluencedAlpha(bool bEnable) { mFlag.influencedAlpha = bEnable; }
32
33 bool IsLocationAdjust() const { return mFlag.locationAdjust; }
34 void SetLocationAdjust(bool bEnable) { mFlag.locationAdjust = bEnable; }
35
36 bool IsInvisiblePaneCalculateMtx() const { return mFlag.invisiblePaneCalculateMtx; }
37 void SetInvisiblePaneCalculateMtx(bool bEnable) {
38 mFlag.invisiblePaneCalculateMtx = bEnable;
39 }
40
41 bool IsDebugDrawMode() const { return mFlag.debugDrawMode; }
42 void SetDebugDrawMode(bool bEnable) { mFlag.debugDrawMode = bEnable; }
43
44 bool IsYAxisUp() const { return mViewRect.bottom - mViewRect.top < 0.0f; }
45
46 f32 GetGlobalAlpha() const { return mGlobalAlpha; }
47 void SetGlobalAlpha(f32 alpha) { mGlobalAlpha = alpha; }
48
49 protected:
50 /* 0x00 (vtable) */
52 /* 0x34 */ ut::Rect mViewRect;
54 /* 0x4C */ f32 mGlobalAlpha;
55 /* 0x50 */ struct {
56 u8 mulViewDraw : 1; // 10000000
57 u8 influencedAlpha : 1; // 01000000
58 u8 locationAdjust : 1; // 00100000
60 u8 debugDrawMode : 1; // 00001000
62 };
63
64 } // namespace lyt
65} // namespace nw4hbm
66
67#endif
Definition drawInfo.h:13
const math::MTX34 & GetViewMtx() const
Definition drawInfo.h:21
const math::VEC2 & GetLocationAdjustScale() const
Definition drawInfo.h:24
u8 debugDrawMode
Definition drawInfo.h:60
u8 mulViewDraw
Definition drawInfo.h:56
void SetLocationAdjust(bool bEnable)
Definition drawInfo.h:34
u8 influencedAlpha
Definition drawInfo.h:57
u8 invisiblePaneCalculateMtx
Definition drawInfo.h:59
void SetDebugDrawMode(bool bEnable)
Definition drawInfo.h:42
void SetViewRect(const ut::Rect &rect)
Definition drawInfo.h:19
void SetViewMtx(const math::MTX34 &value)
Definition drawInfo.h:22
bool IsInvisiblePaneCalculateMtx() const
Definition drawInfo.h:36
bool IsDebugDrawMode() const
Definition drawInfo.h:41
DrawInfo()
Definition lyt_drawInfo.cpp:8
void SetInfluencedAlpha(bool bEnable)
Definition drawInfo.h:31
virtual ~DrawInfo()
Definition lyt_drawInfo.cpp:14
void SetGlobalAlpha(f32 alpha)
Definition drawInfo.h:47
struct nw4hbm::lyt::DrawInfo::@48 mFlag
math::MTX34 mViewMtx
Definition drawInfo.h:51
void SetMultipleViewMtxOnDraw(bool bEnable)
Definition drawInfo.h:28
bool IsMultipleViewMtxOnDraw() const
Definition drawInfo.h:27
bool IsInfluencedAlpha() const
Definition drawInfo.h:30
ut::Rect mViewRect
Definition drawInfo.h:52
void SetLocationAdjustScale(const math::VEC2 &scale)
Definition drawInfo.h:25
f32 mGlobalAlpha
Definition drawInfo.h:54
math::VEC2 mLocationAdjustScale
Definition drawInfo.h:53
bool IsLocationAdjust() const
Definition drawInfo.h:33
bool IsYAxisUp() const
Definition drawInfo.h:44
f32 GetGlobalAlpha() const
Definition drawInfo.h:46
void SetInvisiblePaneCalculateMtx(bool bEnable)
Definition drawInfo.h:37
u8 locationAdjust
Definition drawInfo.h:58
Definition Rect.h:11
f32 bottom
Definition Rect.h:47
f32 top
Definition Rect.h:45
float f32
Definition types.h:25
unsigned char u8
Definition types.h:8
Definition HBMAnmController.h:6
Definition types.h:189
Definition types.h:103