how to get width from sprite?
how to get the width and height of sprite?
In Allegro 4, BITMAP objects have w and h properties:
BITMAP *myBitmap = load_bitmap("whatever.bmp", null);
printf("myBitmap width: %d, height: %d", myBitmap->w, myBitmap->h);
In Allegro 5, use the following functions on an ALLEGRO_BITMAP object:
Thread #605719. Printed from Allegro.cc
thank you very much!