Fix renderer, add image decode/code methods

This commit is contained in:
Simon Robertshaw
2011-05-28 13:49:07 +01:00
parent ab7cd2e5f6
commit 2c7b8a6902
3 changed files with 138 additions and 14 deletions

View File

@@ -48,6 +48,10 @@ extern unsigned int fire_alpha[CELL*3][CELL*3];
extern pixel *fire_bg;
extern pixel *pers_bg;
void *ptif_pack(pixel *src, int w, int h, int *result_size);
pixel *ptif_unpack(void *datain, int size, int *w, int *h);
pixel *rescale_img(pixel *src, int sw, int sh, int *qw, int *qh, int f);
void sdl_blit_1(int x, int y, int w, int h, pixel *src, int pitch);