Drawing images
[Images]

Some routines to draw your images. More...

Functions

void ulDrawImage (UL_IMAGE *img)
void ulDrawImageXY (UL_IMAGE *img, s16 x, s16 y)

Detailed Description

Some routines to draw your images.


Function Documentation

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.


Generated on Sat Jul 14 23:39:33 2007 by  doxygen 1.5.2