![]() |
dsekai
World engine for retrocomputers.
|
Interface to cache that holds/deduplicates sprites and tiles. More...

Functions | |
| int16_t | graphics_cache_blit_at (uint16_t bitmap_idx, int16_t instance_id, uint16_t s_x, uint16_t s_y, uint16_t d_x, uint16_t d_y, uint16_t w, uint16_t h) |
| Copy part or all of a GRAPHICS_BITMAP image to the screen. | |
| void | graphics_clear_cache () SECTION_SETUP |
| Free up graphics and resources used by loaded assets. Should only be called as part of cleanup (i.e. between maps). | |
| int16_t | graphics_cache_load_bitmap (RESOURCE_ID id, uint8_t type_flag) |
Interface to cache that holds/deduplicates sprites and tiles.
| int16_t graphics_cache_blit_at | ( | uint16_t | bitmap_idx, |
| int16_t | instance_id, | ||
| uint16_t | s_x, | ||
| uint16_t | s_y, | ||
| uint16_t | d_x, | ||
| uint16_t | d_y, | ||
| uint16_t | w, | ||
| uint16_t | h ) |
Copy part or all of a GRAPHICS_BITMAP image to the screen.
| bitmap_idx | Index of the GRAPHICS_BITMAP in the graphics cache. |
| instance_id | Unique ID for the specific mobile being blitted, or -1. |
| s_x | Horizontal location of upper-left corner of copy source rectangle. |
| s_y | Vertical location of upper-left corner of copy source rectangle. |
| d_x | Horizontal location of upper-left corner of destination rectangle. |
| d_y | Vertical location of upper-left corner of destination rectangle. |
| w | Pixel width of copy rectangle. |
| h | Pixel height of copy rectangle. |
This tries to load the bitmap into the internal bitmap cache the first time that bitmap's resource ID is given.