|
|
| Image* load_image |
( |
const char * |
filename, |
|
|
int |
location | |
|
) |
| | |
Loads an image into either ram or vram and swizzles the image
Available locations are:
- 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
- Example: Load an image into 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.
|