Twilight Princess
Decompilation of The Legend of Zelda: Twilight Princess
Loading...
Searching...
No Matches
J2DOrthoGraph.h
Go to the documentation of this file.
1#ifndef J2DORTHOGRAPH_H
2#define J2DORTHOGRAPH_H
3
5
11public:
12 /* 802E9670 */ J2DOrthoGraph();
13 /* 802E96D0 */ J2DOrthoGraph(f32 x, f32 y, f32 width, f32 height, f32 far, f32 near);
14 /* 802E980C */ void setOrtho(JGeometry::TBox2<f32> const& bounds, f32 far, f32 near);
15 /* 802E987C */ void scissorBounds(JGeometry::TBox2<f32>*, JGeometry::TBox2<f32> const*);
16
17 /* 8000B118 */ virtual ~J2DOrthoGraph() {}
18 /* 802E97B4 */ virtual void setPort();
19 /* 802E9C88 */ virtual s32 getGrafType() const { return 1; }
20 /* 802E9840 */ virtual void setLookat();
21
22 f32 getWidthPower() const { return mBounds.getWidth() / mOrtho.getWidth(); }
23 f32 getHeightPower() const { return mBounds.getHeight() / mOrtho.getHeight(); }
24
25 void setOrtho(f32 x, f32 y, f32 width, f32 height, f32 far, f32 near) {
26 JGeometry::TBox2<f32> ortho(x, y, x + width, y + height);
28 }
29
30private:
32 /* 0xCC */ f32 mNear;
33 /* 0xD0 */ f32 mFar;
34};
35
37 int line_width);
38void J2DFillBox(f32 x, f32 y, f32 width, f32 height, JUtility::TColor color);
42
43#endif /* J2DORTHOGRAPH_H */
void J2DDrawFrame(f32 x, f32 y, f32 width, f32 height, JUtility::TColor color, u8 line_width)
Definition J2DOrthoGraph.cpp:80
void J2DDrawLine(f32 x1, f32 y1, f32 x2, f32 y2, JUtility::TColor color, int line_width)
Definition J2DOrthoGraph.cpp:56
void J2DFillBox(f32 x, f32 y, f32 width, f32 height, JUtility::TColor color)
Definition J2DOrthoGraph.cpp:66
T cLib_calcTimer(T *value)
Definition c_lib.h:74
Definition J2DGrafContext.h:12
JGeometry::TBox2< f32 > mBounds
Definition J2DGrafContext.h:53
Definition J2DOrthoGraph.h:10
J2DOrthoGraph()
Definition J2DOrthoGraph.cpp:5
void setOrtho(JGeometry::TBox2< f32 > const &bounds, f32 far, f32 near)
Definition J2DOrthoGraph.cpp:27
f32 getHeightPower() const
Definition J2DOrthoGraph.h:23
virtual ~J2DOrthoGraph()
Definition J2DOrthoGraph.h:17
void setOrtho(f32 x, f32 y, f32 width, f32 height, f32 far, f32 near)
Definition J2DOrthoGraph.h:25
void scissorBounds(JGeometry::TBox2< f32 > *, JGeometry::TBox2< f32 > const *)
Definition J2DOrthoGraph.cpp:41
virtual void setPort()
Definition J2DOrthoGraph.cpp:19
f32 getWidthPower() const
Definition J2DOrthoGraph.h:22
f32 mFar
Definition J2DOrthoGraph.h:33
virtual void setLookat()
Definition J2DOrthoGraph.cpp:34
virtual s32 getGrafType() const
Definition J2DOrthoGraph.h:19
f32 mNear
Definition J2DOrthoGraph.h:32
JGeometry::TBox2< f32 > mOrtho
Definition J2DOrthoGraph.h:31
static SECTION_DATA u8 color[4]
Definition d_a_obj_crope.cpp:225
double x double x
Definition e_atan2.c:58
double x double y
Definition e_atan2.c:58
double y1
Definition e_pow.c:163
Definition JGeometry.h:496
Definition TColor.h:12
float f32
Definition types.h:22
signed long s32
Definition types.h:6
unsigned char u8
Definition types.h:8