diff options
| author | Matthias Melcher <fltk@matthiasm.com> | 2018-03-23 22:50:26 +0000 |
|---|---|---|
| committer | Matthias Melcher <fltk@matthiasm.com> | 2018-03-23 22:50:26 +0000 |
| commit | aeafea2041592482cf381fe0c7b5d11b484925e6 (patch) | |
| tree | 7d6f429c789954ad6a0e7cb51d68f41c4cbce775 /src/drivers/Android/Fl_Android_Graphics_Driver.cxx | |
| parent | 514782864ed7680901e7bd7a4b8044fc887c71b9 (diff) | |
Android: Added fl_polygon and fl_loop calls. All boxtypes draw well now.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12788 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/drivers/Android/Fl_Android_Graphics_Driver.cxx')
| -rw-r--r-- | src/drivers/Android/Fl_Android_Graphics_Driver.cxx | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/src/drivers/Android/Fl_Android_Graphics_Driver.cxx b/src/drivers/Android/Fl_Android_Graphics_Driver.cxx index 9d8242958..46d638767 100644 --- a/src/drivers/Android/Fl_Android_Graphics_Driver.cxx +++ b/src/drivers/Android/Fl_Android_Graphics_Driver.cxx @@ -274,6 +274,59 @@ void Fl_Android_Graphics_Driver::line_unscaled(float x, float y, float x1, float } } + +void Fl_Android_Graphics_Driver::line_unscaled(float x, float y, float x1, float y1, float x2, float y2) +{ + begin_line(); + transformed_vertex0(x, y); + transformed_vertex0(x1, y1); + transformed_vertex0(x2, y2); + end_line(); +} + + +void Fl_Android_Graphics_Driver::loop_unscaled(float x0, float y0, float x1, float y1, float x2, float y2) +{ + begin_loop(); + transformed_vertex0(x0, y0); + transformed_vertex0(x1, y1); + transformed_vertex0(x2, y2); + end_loop(); +} + + +void Fl_Android_Graphics_Driver::loop_unscaled(float x0, float y0, float x1, float y1, float x2, float y2, float x3, float y3) +{ + begin_loop(); + transformed_vertex0(x0, y0); + transformed_vertex0(x1, y1); + transformed_vertex0(x2, y2); + transformed_vertex0(x3, y3); + end_loop(); +} + + +void Fl_Android_Graphics_Driver::polygon_unscaled(float x0, float y0, float x1, float y1, float x2, float y2) +{ + begin_polygon(); + transformed_vertex0(x0, y0); + transformed_vertex0(x1, y1); + transformed_vertex0(x2, y2); + end_polygon(); +} + + +void Fl_Android_Graphics_Driver::polygon_unscaled(float x0, float y0, float x1, float y1, float x2, float y2, float x3, float y3) +{ + begin_polygon(); + transformed_vertex0(x0, y0); + transformed_vertex0(x1, y1); + transformed_vertex0(x2, y2); + transformed_vertex0(x3, y3); + end_polygon(); +} + + /** * Reset the vertex counter to zero. */ |
