From 2b3567c83ca18b5dad62be7f10cc71446c028164 Mon Sep 17 00:00:00 2001 From: Matthias Melcher Date: Tue, 26 Jan 2016 20:48:21 +0000 Subject: OpenGL new naming scheme. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11055 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- .../OpenGL/Fl_OpenGL_Graphics_Driver_arci.cxx | 70 ++++++++++++++++++++++ 1 file changed, 70 insertions(+) create mode 100644 src/drivers/OpenGL/Fl_OpenGL_Graphics_Driver_arci.cxx (limited to 'src/drivers/OpenGL/Fl_OpenGL_Graphics_Driver_arci.cxx') diff --git a/src/drivers/OpenGL/Fl_OpenGL_Graphics_Driver_arci.cxx b/src/drivers/OpenGL/Fl_OpenGL_Graphics_Driver_arci.cxx new file mode 100644 index 000000000..15ec4cf36 --- /dev/null +++ b/src/drivers/OpenGL/Fl_OpenGL_Graphics_Driver_arci.cxx @@ -0,0 +1,70 @@ +// +// "$Id$" +// +// Arc (integer) drawing functions for the Fast Light Tool Kit (FLTK). +// +// Copyright 1998-2010 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: +// +// http://www.fltk.org/COPYING.php +// +// Please report all bugs and problems on the following page: +// +// http://www.fltk.org/str.php +// + +#ifndef FL_CFG_GFX_OPENGL_ARCI_CXX +#define FL_CFG_GFX_OPENGL_ARCI_CXX + +/** + \file opengl_arci.cxx + \brief Utility functions for drawing circles using integers +*/ + +#include +#define _USE_MATH_DEFINES +#include + +void Fl_OpenGL_Graphics_Driver::arc(int x,int y,int w,int h,double a1,double a2) { + if (w <= 0 || h <= 0) return; + while (a2