[SDL] Rectangle News

Nathan Hurst njh at cs.monash.edu.au
Sat Sep 12 06:17:06 PDT 1998


On Sat, 12 Sep 1998, Michele Bini wrote:

> > > I am in the process of converting SDL_Rects from x, y, w, h to
> > > minx, maxx, miny, maxy
> 
> > Okay, I decided, in the interests of stability, not to convert the
> > rectangle structure.
> 
> I agree with you, Sam. I believe the current approach is cleaner and
> and simpler, and I suspect that, in many cases, it is faster.

It is not faster with clipping (clipping becomes min, max), and I can't
see why it is more elegant in general.

njh




More information about the SDL mailing list