From aeafea2041592482cf381fe0c7b5d11b484925e6 Mon Sep 17 00:00:00 2001 From: Matthias Melcher Date: Fri, 23 Mar 2018 22:50:26 +0000 Subject: 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 --- src/drivers/Android/Fl_Android_Graphics_Driver.cxx | 53 ++++++++++++++++++++++ 1 file changed, 53 insertions(+) (limited to 'src/drivers/Android/Fl_Android_Graphics_Driver.cxx') 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. */ -- cgit v1.2.3