Re: Thoughts about a new GdkPixbuf transform interface



On Fri, 2003-02-21 at 11:17, Sander Vesik wrote:
> Jody Goldberg wrote:
> > On Thu, Feb 20, 2003 at 12:53:46AM +0300, Oleg Klimov wrote:
> > 
> >>void gdk_pixbuf_transform_set_affine    (GdkPixbufTransform*    trans,
> >>                                        gdouble                offset_x,
> >>                                        gdouble                offset_y,
> >>                                        gdouble                m00,
> >>                                        gdouble                m01,
> >>                                        gdouble                m10,
> >>                                        gdouble                m11);
> > 
> > 
> > Minor quible.  I'm unclear why people seem to prefer passing things
> > in as 6 distinct arguments, why not 1 array ?
> 
> Leavingteh 'in general' argument aside - m00 ... m11 should probably be an 
> array. its probably more convinient to keep offsets as independent scalars

Both libart and gnome-canvas use a single array, and anything keeping
track of its own tranforms probably will too.  I don't see why splitting
out the translation is of any real benefit.

--Larry




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]