nanogui: GrArc() function
Subject:
Re: GrArc() function
From:
"Greg Haerr" ####@####.####
Date:
29 Nov 2000 22:05:22 -0000
Message-Id: <014f01c05a51$969c9970$6817dbd0@censoft.com>
: Should I send you the patch again, Greg?
Yes. Sorry, I seem to have forgotten about this.
: ax : the X coordinate of the start of the arc relative to the
: drawable
: ay : the Y coordinate of the start of the arc relative to the
: drawable
: bx : the X coordinate of the end of the arc relative to the
: drawable
: by : the Y coordinate of the end of the arc relative to the
: drawable
I included GrArc() for those tiny systems that don't have
floating point support. The ax,ay and bx,by values specify
any point on the line from the arc centerpoint through the
initial point and end point of the arc to be drawn, respectively.
This function is included because if an angle is specified, then
we've got to drag in floating point for the tan/atan function.
An easier function to understand is GrArcAngle, where the
arc is specified in 1/10 degrees, rather than the strange start/end
point values in GrArc. Check out src/engine/devarc.c for to see how
GrArcAngle ends up calling GrArc, which then draws the arc.
Regards,
Greg