2019-12-15 19:17:00 +00:00
|
|
|
#include "th03/formats/pi.h"
|
|
|
|
|
2017-01-11 15:12:39 +00:00
|
|
|
int pascal pi_free(int slot);
|
2019-12-10 07:52:24 +00:00
|
|
|
|
2020-09-19 17:18:59 +00:00
|
|
|
#undef pi_load_put_free
|
|
|
|
|
|
|
|
static inline void pi_load_put_free(int slot, const char *fn) {
|
|
|
|
pi_load(slot, fn);
|
|
|
|
pi_palette_apply(slot);
|
|
|
|
pi_put(0, 0, slot);
|
|
|
|
pi_free(0);
|
|
|
|
}
|
|
|
|
|
2017-01-11 15:12:39 +00:00
|
|
|
// Like pi_put() and pi_put_quarter(), but applying the mask with the given ID
|
|
|
|
// while blitting.
|
|
|
|
int pascal pi_put_mask(screen_x_t left, vram_y_t top, int slot, int mask_id);
|
|
|
|
int pascal pi_put_quarter_mask(
|
2020-08-20 19:59:45 +00:00
|
|
|
screen_x_t left, vram_y_t top, int slot, int quarter, int mask_id
|
2019-12-10 07:52:24 +00:00
|
|
|
);
|