Image* load_image ( const char *  filename,
int  location 
)

Loads an image into either ram or vram and swizzles the image

Available locations are:

  • IN_RAM
  • IN_VRAM

Note:
Loading into vram allows you to draw images faster, but vram only has about 500Kb of space. On the other hand, ram has about 20Mb of space, but loads 10x slower then vram. A solution would call for putting your most used textures into vram, and everything else into ram!
Example: Load an image into ram
 Image *img = load_image ( "image.png", IN_RAM);
Example: Load an image into vram
 Image *img = load_image ( "image.png", IN_VRAM);
Parameters:
filename - Where the image is located.
location - Where to load the image (ram or vram).
Returns:
The Image you loaded

Definition at line 446 of file image.c.

References angle, centerX, centerY, endX, endY, height, location, startX, startY, width, x, and y.


Generated on Tue Mar 20 23:01:06 2007 for vLib by  doxygen 1.4.7