Twilight Princess
Decompilation of The Legend of Zelda: Twilight Princess
Loading...
Searching...
No Matches
J2DGrafContext.h
Go to the documentation of this file.
1#ifndef J2DGRAFCONTEXT_H
2#define J2DGRAFCONTEXT_H
3
4#include "JSystem/JGeometry.h"
6#include "dolphin/mtx.h"
7
13public:
14 struct Blend {
15 /* 0x0 */ u8 mType;
16 /* 0x1 */ u8 mSrcFactor;
17 /* 0x2 */ u8 mDstFactor;
18 };
19
20
21 /* 802E8B08 */ J2DGrafContext(f32 x, f32 y, f32 width, f32 height);
22 /* 802E90C0 */ void scissor(JGeometry::TBox2<f32> const& bounds);
23 void scissor(f32 x, f32 y, f32 width, f32 height) {
24 scissor(JGeometry::TBox2<f32>(x, y, x + width, y + height));
25 }
26
27 void setColor(JUtility::TColor c) { this->setColor(c, c, c, c); }
30 /* 802E9234 */ void setLineWidth(u8);
31 /* 802E9260 */ void fillBox(JGeometry::TBox2<f32> const& box);
32 /* 802E9368 */ void drawFrame(JGeometry::TBox2<f32> const& box);
34 /* 802E9564 */ void lineTo(JGeometry::TVec2<f32> pos);
37
39
40 /* 802E95D4 */ virtual ~J2DGrafContext() {}
41 /* 802E90E4 */ virtual void place(JGeometry::TBox2<f32> const& bounds);
42 /* 802E961C */ virtual void place(f32 x, f32 y, f32 width, f32 height) {
43 JGeometry::TBox2<f32> box(x, y, x + width, y + height);
44 this->place(box);
45 }
46 /* 802E8BB4 */ virtual void setPort();
47 /* 802E8C44 */ virtual void setup2D();
48 /* 802E8E20 */ virtual void setScissor();
49 /* 802E9664 */ virtual s32 getGrafType() const { return 0; }
50 /* 802E966C */ virtual void setLookat() {}
51
52public:
59 /* 0x34 */ u8 mLineWidth;
61 /* 0x40 */ Mtx44 mMtx44;
62 /* 0x80 */ Mtx mPosMtx;
63 /* 0xB0 */ Blend field_0xb0;
64 /* 0xB3 */ Blend mLinePart;
65 /* 0xB6 */ Blend mBoxPart;
66};
67
68#endif /* J2DGRAFCONTEXT_H */
T cLib_calcTimer(T *value)
Definition c_lib.h:74
Definition J2DGrafContext.h:12
virtual void setup2D()
Definition J2DGrafContext.cpp:29
virtual ~J2DGrafContext()
Definition J2DGrafContext.h:40
Mtx44 mMtx44
Definition J2DGrafContext.h:61
void scissor(f32 x, f32 y, f32 width, f32 height)
Definition J2DGrafContext.h:23
void scissor(JGeometry::TBox2< f32 > const &bounds)
Definition J2DGrafContext.cpp:83
void moveTo(JGeometry::TVec2< f32 > pos)
Definition J2DGrafContext.h:38
JUtility::TColor mColorBL
Definition J2DGrafContext.h:58
JUtility::TColor mColorBR
Definition J2DGrafContext.h:57
virtual void setPort()
Definition J2DGrafContext.cpp:13
virtual void setScissor()
Definition J2DGrafContext.cpp:65
void drawFrame(JGeometry::TBox2< f32 > const &box)
Definition J2DGrafContext.cpp:164
void lineTo(f32 x, f32 y)
Definition J2DGrafContext.h:35
JGeometry::TVec2< f32 > mPrevPos
Definition J2DGrafContext.h:60
void moveTo(f32 x, f32 y)
Definition J2DGrafContext.h:36
u8 mLineWidth
Definition J2DGrafContext.h:59
void line(JGeometry::TVec2< f32 > start, JGeometry::TVec2< f32 > end)
Definition J2DGrafContext.cpp:186
JGeometry::TBox2< f32 > mBounds
Definition J2DGrafContext.h:53
virtual void setLookat()
Definition J2DGrafContext.h:50
void fillBox(JGeometry::TBox2< f32 > const &box)
Definition J2DGrafContext.cpp:144
void setLineWidth(u8)
Definition J2DGrafContext.cpp:137
JUtility::TColor mColorTR
Definition J2DGrafContext.h:56
virtual void place(f32 x, f32 y, f32 width, f32 height)
Definition J2DGrafContext.h:42
Blend field_0xb0
Definition J2DGrafContext.h:63
JGeometry::TBox2< f32 > mScissorBounds
Definition J2DGrafContext.h:54
JUtility::TColor mColorTL
Definition J2DGrafContext.h:55
Blend mBoxPart
Definition J2DGrafContext.h:65
virtual s32 getGrafType() const
Definition J2DGrafContext.h:49
Blend mLinePart
Definition J2DGrafContext.h:64
void lineTo(JGeometry::TVec2< f32 > pos)
Definition J2DGrafContext.cpp:202
void setColor(JUtility::TColor c)
Definition J2DGrafContext.h:27
Mtx mPosMtx
Definition J2DGrafContext.h:62
virtual void place(JGeometry::TBox2< f32 > const &bounds)
Definition J2DGrafContext.cpp:89
static void end(b_oh_class *i_this)
Definition d_a_b_oh.cpp:527
static u8 pos[12]
Definition d_a_obj_kago.cpp:839
c
Definition e_acos.c:97
double x double x
Definition e_atan2.c:58
double x double y
Definition e_atan2.c:58
f32 Mtx44[4][4]
Definition mtx44.h:6
f32 Mtx[3][4]
Definition mtx.h:15
@ start
Definition strtoul.c:8
Definition J2DGrafContext.h:14
u8 mType
Definition J2DGrafContext.h:15
u8 mDstFactor
Definition J2DGrafContext.h:17
u8 mSrcFactor
Definition J2DGrafContext.h:16
Definition JGeometry.h:496
Definition JGeometry.h:401
Definition TColor.h:12
float f32
Definition types.h:22
signed long s32
Definition types.h:6
unsigned char u8
Definition types.h:8