Re: draw_polygon - possible code...

From: Date: Wed, 29 Aug 2001 20:17:21 +0000
Subject: Re: draw_polygon - possible code...
References: 1 2 3 4  Groups: php.gtk.dev 
Request: Send a blank email to php-gtk-dev+get-35@lists.php.net to get a copy of this message
On Wed, Aug 29, 2001 at 03:09:24PM -0500, Andrei Zmievski wrote : > On Wed, 29 Aug 2001, Markus Fischer wrote: > > I've checked some sources .. most of them never use GdkPoint > > natively and always construct an array of GdkPoint only to pass > > it to draw_polygon(). So, the use of a flat array is not only > > efficient but also the easiest way to use it. > > So, a flat array or an array of arrays? ((0,1), (2,3))? flat ... array(x1,y1,x2,y2 .... > > And .. if we really need it otherwise, implementing it is > > trivial. > > Sure it is, but what about backwards compatibility? What do you mean exactly? We can alway detect what kind of array or type the user is passing with some simple checks? - Markus -- Markus Fischer, http://guru.josefine.at/~mfischer/ EMail: mfischer@guru.josefine.at PGP Public Key: http://guru.josefine.at/~mfischer/C2272BD0.asc PGP Fingerprint: D3B0 DD4F E12B F911 3CE1 C2B5 D674 B445 C227 2BD0 -All your scripts are belong to Zend-

« previous php.gtk.dev (#35) next »