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-10-23 17:27:10 +00:00
|
|
|
#undef pi_load_put_8_free
|
2020-09-19 17:18:59 +00:00
|
|
|
|
2020-10-23 17:27:10 +00:00
|
|
|
static inline void pi_load_put_8_free(int slot, const char *fn) {
|
2020-09-19 17:18:59 +00:00
|
|
|
pi_load(slot, fn);
|
|
|
|
pi_palette_apply(slot);
|
2020-10-23 17:27:10 +00:00
|
|
|
pi_put_8(0, 0, slot);
|
2020-09-19 17:18:59 +00:00
|
|
|
pi_free(0);
|
|
|
|
}
|
|
|
|
|
2020-10-23 17:27:10 +00:00
|
|
|
// Like pi_put_8() and pi_put_quarter_8(), but applying the mask with the given
|
|
|
|
// ID while blitting.
|
|
|
|
int pascal pi_put_mask_8(screen_x_t left, vram_y_t top, int slot, int mask_id);
|
|
|
|
int pascal pi_put_quarter_mask_8(
|
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
|
|
|
);
|