Re: [AD] bitmap helper methods |
[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]
Elias Pschernig wrote:
On Sun, 2004-11-07 at 23:04 -0500, Jon Rafkind wrote:Ive been thinking about adding this for a while and dont really know they dont exist already. Ive attached two methods, get_width and get_height, that simply return bmp->x and bmp->h
...
Anyway, I don't really see a problem adding them, but OTOH, should we really clutter up the API with useless accessor functions? This is C, not C++, after all.
I don't think there's much point adding them at this late stage. There's no way we can deprecate bmp->w, bmp->h now, and very few people are going to prefer to write bitmap_width(bmp),bitmap_height(bmp)) instead of bmp->w,bmp->h when they are equivalent (save for some assertions).
Peter
Mail converted by MHonArc 2.6.19+ | http://listengine.tuxfamily.org/ |