Re: draw_polygon - possible code...

From: Date: Wed, 29 Aug 2001 18:51:14 +0000
Subject: Re: draw_polygon - possible code...
References: 1  Groups: php.gtk.dev 
Request: Send a blank email to php-gtk-dev+get-32@lists.php.net to get a copy of this message
On Wed, 29 Aug 2001, Alan Knowles wrote: > had a look at draw_polygon - this version uses a array eg. > (1,0,2,0,2,2,1,2) etc. to create the polygon.. > - the overhead to create a 'point object' for 'x,y' seemed a bit much.. > I guess it could also do > > ((1,0),(2,0),(2,2)).. > > note that there is no error checking on the array reading.. > I think the code could be fitted into gen_types.php reasonably easily.. I am not quite sure if we should take this approach or just use GdkPoint objects. This way may be a bit more efficient.. but.. What do others think? -Andrei "The day Microsoft makes something that doesn't suck, is probably the day Microsoft starts making vacuum cleaners." - Ernst Jan Plugge

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