Functions | |
void | ulDrawImage (UL_IMAGE *img) |
void | ulDrawImageXY (UL_IMAGE *img, s16 x, s16 y) |
void ulDrawImage | ( | UL_IMAGE * | img | ) |
Draws an image, using its properties.
void ulDrawImageXY | ( | UL_IMAGE * | img, | |
s16 | x, | |||
s16 | y | |||
) | [inline] |
Draws an image, specifying its coordinates on the screen.
Important: the coordinates specified there will be set in the image itself, and will be left even after this routine has finished. Example:
img->x = img->y = 0; //Set image coordinates to (0,0) ulDrawImage(img); //Will be drawn at (0,0) ulDrawImageXY(img, 10, 20); //Will be drawn at (10,20) ulDrawImage(img); //Will be drawn at (10,20)
For this reason, you should not mix usage of ulDrawImage and ulDrawImageXY for a single image, else you may encounter vicious problems like objects mysteriously disappearing: in the example above, you could expect the second ulDrawImage to draw at (0,0) like the first one, but it will draw at (10,20) instead.