- Main Page
- Modules
- Data Structures
- Files

- Search for |

draw_image
load_image
set_linear_filter
unload_image
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.