// // Portable drawing routines for the Fast Light Tool Kit (FLTK). // // Copyright 1998-2022 by Bill Spitzak and others. // // This library is free software. Distribution and use rights are outlined in // the file "COPYING" which should have been included with this file. If this // file is missing or damaged, see the license at: // // https://www.fltk.org/COPYING.php // // Please see the following page on how to report bugs and issues: // // https://www.fltk.org/bugs.php // /** \file quartz_vertex.cxx \brief Portable drawing code for drawing arbitrary shapes with simple 2D transformations, implemented for OS X Quartz. */ #include "Fl_Quartz_Graphics_Driver.H" #include #include #include void Fl_Quartz_Graphics_Driver::end_points() { for (int i = 0; i < n; i++) { point(xpoint[i].x, xpoint[i].y); } } void Fl_Quartz_Graphics_Driver::end_line() { if (n < 2) { end_points(); return; } if (n<=1) return; CGContextSetShouldAntialias(gc_, true); CGContextMoveToPoint(gc_, xpoint[0].x, xpoint[0].y); for (int i=1; i