diff options
| author | Jcw87 <Jcw87@users.noreply.github.com> | 2023-07-09 22:35:49 -0700 |
|---|---|---|
| committer | Jcw87 <Jcw87@users.noreply.github.com> | 2023-07-15 19:02:28 -0700 |
| commit | ec4df7f8dba7541528cf8585ce5741959baabfb9 (patch) | |
| tree | 9dd226812b717943fda979a4beddbd3518495cc4 /libs/JSystem/J2DGraph | |
| parent | 66b3dc12ae1dfea56956dd8560a68d8fb078e4d9 (diff) | |
J2DOrthoGraph: improved parameter names
Diffstat (limited to 'libs/JSystem/J2DGraph')
| -rw-r--r-- | libs/JSystem/J2DGraph/J2DOrthoGraph.cpp | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/libs/JSystem/J2DGraph/J2DOrthoGraph.cpp b/libs/JSystem/J2DGraph/J2DOrthoGraph.cpp index 0c2fe29963..75d5e32b60 100644 --- a/libs/JSystem/J2DGraph/J2DOrthoGraph.cpp +++ b/libs/JSystem/J2DGraph/J2DOrthoGraph.cpp @@ -26,11 +26,11 @@ J2DOrthoGraph::J2DOrthoGraph() : J2DGrafContext(0, 0, 0, 0) { } /* 802E96D0-802E97B4 2E4010 00E4+00 0/0 7/7 0/0 .text __ct__13J2DOrthoGraphFffffff */ -J2DOrthoGraph::J2DOrthoGraph(f32 left, f32 top, f32 right, f32 bottom, f32 param_4, f32 param_5) - : J2DGrafContext(left, top, right, bottom) { - mOrtho = JGeometry::TBox2<f32>(0, 0, right, bottom); - mNear = -param_5; - mFar = -param_4; +J2DOrthoGraph::J2DOrthoGraph(f32 x, f32 y, f32 width, f32 height, f32 far, f32 near) + : J2DGrafContext(x, y, width, height) { + mOrtho = JGeometry::TBox2<f32>(0, 0, width, height); + mNear = -near; + mFar = -far; this->setLookat(); } @@ -72,41 +72,41 @@ void J2DOrthoGraph::scissorBounds(JGeometry::TBox2<f32>* param_0, } /* 802E9998-802E9AC4 2E42D8 012C+00 0/0 6/6 0/0 .text J2DDrawLine__FffffQ28JUtility6TColori */ -void J2DDrawLine(f32 param_0, f32 param_1, f32 param_2, f32 param_3, JUtility::TColor color, +void J2DDrawLine(f32 x1, f32 y1, f32 x2, f32 y2, JUtility::TColor color, int line_width) { J2DOrthoGraph oGrph; oGrph.setLineWidth(line_width); oGrph.setColor(color); - oGrph.moveTo(param_0, param_1); - oGrph.lineTo(param_2, param_3); + oGrph.moveTo(x1, y1); + oGrph.lineTo(x2, y2); } /* 802E9AC4-802E9B0C 2E4404 0048+00 0/0 10/10 0/0 .text J2DFillBox__FffffQ28JUtility6TColor */ -void J2DFillBox(f32 param_0, f32 param_1, f32 param_2, f32 param_3, JUtility::TColor color) { - J2DFillBox(JGeometry::TBox2<f32>(param_0, param_1, param_0 + param_2, param_1 + param_3), +void J2DFillBox(f32 x, f32 y, f32 width, f32 height, JUtility::TColor color) { + J2DFillBox(JGeometry::TBox2<f32>(x, y, x + width, y + height), color); } /* 802E9B0C-802E9B9C 2E444C 0090+00 1/1 0/0 0/0 .text * J2DFillBox__FRCQ29JGeometry8TBox2<f>Q28JUtility6TColor */ -void J2DFillBox(JGeometry::TBox2<f32> const& param_0, JUtility::TColor param_1) { +void J2DFillBox(JGeometry::TBox2<f32> const& box, JUtility::TColor color) { J2DOrthoGraph oGrph; - oGrph.setColor(param_1); - oGrph.fillBox(param_0); + oGrph.setColor(color); + oGrph.fillBox(box); } /* 802E9B9C-802E9BE8 2E44DC 004C+00 0/0 5/5 0/0 .text J2DDrawFrame__FffffQ28JUtility6TColorUc */ -void J2DDrawFrame(f32 param_0, f32 param_1, f32 param_2, f32 param_3, JUtility::TColor color, +void J2DDrawFrame(f32 x, f32 y, f32 width, f32 height, JUtility::TColor color, u8 line_width) { - J2DDrawFrame(JGeometry::TBox2<f32>(param_0, param_1, param_0 + param_2, param_1 + param_3), + J2DDrawFrame(JGeometry::TBox2<f32>(x, y, x + width, y + height), color, line_width); } /* 802E9BE8-802E9C88 2E4528 00A0+00 1/1 0/0 0/0 .text * J2DDrawFrame__FRCQ29JGeometry8TBox2<f>Q28JUtility6TColorUc */ -void J2DDrawFrame(JGeometry::TBox2<f32> const& param_0, JUtility::TColor color, u8 line_width) { +void J2DDrawFrame(JGeometry::TBox2<f32> const& box, JUtility::TColor color, u8 line_width) { J2DOrthoGraph oGrph; oGrph.setColor(color); oGrph.setLineWidth(line_width); - oGrph.drawFrame(param_0); + oGrph.drawFrame(box); } |
