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:
13 J2DOrthoGraph(f32 x, f32 y, f32 width, f32 height, f32 far, f32 near);
14 void setOrtho(JGeometry::TBox2<f32> const& bounds, f32 far, f32 near);
16
17 virtual ~J2DOrthoGraph() {}
18 virtual void setPort();
19 virtual s32 getGrafType() const { return 1; }
20 virtual void setLookat();
21
22 f32 getWidthPower() const { return mBounds.getWidth() / mOrtho.getWidth(); }
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);
27 setOrtho(ortho, far, near);
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);
40void J2DDrawFrame(f32 x, f32 y, f32 width, f32 height, JUtility::TColor color, u8 line_width);
41void J2DDrawFrame(JGeometry::TBox2<f32> const& box, JUtility::TColor color, u8 line_width);
42
43#endif /* J2DORTHOGRAPH_H */
void J2DDrawFrame(f32 x, f32 y, f32 width, f32 height, JUtility::TColor color, u8 line_width)
Definition J2DOrthoGraph.cpp:69
void J2DDrawLine(f32 x1, f32 y1, f32 x2, f32 y2, JUtility::TColor color, int line_width)
Definition J2DOrthoGraph.cpp:49
void J2DFillBox(f32 x, f32 y, f32 width, f32 height, JUtility::TColor color)
Definition J2DOrthoGraph.cpp:58
Definition J2DGrafContext.h:12
JGeometry::TBox2< f32 > mBounds
Definition J2DGrafContext.h:53
Definition J2DOrthoGraph.h:10
J2DOrthoGraph()
Definition J2DOrthoGraph.cpp:6
void setOrtho(JGeometry::TBox2< f32 > const &bounds, f32 far, f32 near)
Definition J2DOrthoGraph.cpp:24
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:35
virtual void setPort()
Definition J2DOrthoGraph.cpp:18
f32 getWidthPower() const
Definition J2DOrthoGraph.h:22
f32 mFar
Definition J2DOrthoGraph.h:33
virtual void setLookat()
Definition J2DOrthoGraph.cpp:30
virtual s32 getGrafType() const
Definition J2DOrthoGraph.h:19
f32 mNear
Definition J2DOrthoGraph.h:32
JGeometry::TBox2< f32 > mOrtho
Definition J2DOrthoGraph.h:31
static GXColor color
Definition d_a_obj_crope.cpp:39
float f32
Definition types.h:25
signed long s32
Definition types.h:11
unsigned char u8
Definition types.h:8
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:499
f32 getHeight() const
Definition JGeometry.h:476
f32 getWidth() const
Definition JGeometry.h:475
Definition TColor.h:12