[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
I'm loving the new cropping ideas. Here's another: how about a macro or
function that draws cropped bitmaps using their offsets? Umm...
#define draw_bitmap_off(bmp,x,y,tx,ty,w,h) \
draw_bitmap(bmp, x, y, tx + bmp->xcrp, ty + bmp->ycrp, w, h)
Any ideas? I don't know if the above will work; I don't remember the format
for draw bitmap offhand right now. =) Also, as a macro it wouldn't take up
any extra space in the already huge library.
- Charles
______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com