summaryrefslogtreecommitdiff
path: root/includes
diff options
context:
space:
mode:
authorSimon Robertshaw <simon@hardwired.org.uk>2011-12-30 19:48:11 (GMT)
committer Simon Robertshaw <simon@hardwired.org.uk>2011-12-30 19:48:11 (GMT)
commitb4b4a90f006c4c84d11a7017c2c454c1692c7b24 (patch)
treee6761383beb59ca1728138632979c29ab34be7c6 /includes
parent9c3139354753f01c8cce68bad958c17ab6054b46 (diff)
downloadpowder-b4b4a90f006c4c84d11a7017c2c454c1692c7b24.zip
powder-b4b4a90f006c4c84d11a7017c2c454c1692c7b24.tar.gz
Almost finished new save format, just signs and thumbnail rendering needed
Diffstat (limited to 'includes')
-rw-r--r--includes/graphics.h2
-rw-r--r--includes/save.h6
2 files changed, 6 insertions, 2 deletions
diff --git a/includes/graphics.h b/includes/graphics.h
index 957c160..dde1c9c 100644
--- a/includes/graphics.h
+++ b/includes/graphics.h
@@ -215,8 +215,6 @@ void dim_copy_pers(pixel *dst, pixel *src);
void render_zoom(pixel *img);
-pixel *prerender_save(void *save, int size, int *width, int *height);
-
int render_thumb(void *thumb, int size, int bzip2, pixel *vid_buf, int px, int py, int scl);
void render_cursor(pixel *vid, int x, int y, int t, int rx, int ry);
diff --git a/includes/save.h b/includes/save.h
index 3b4cc7c..a9645a0 100644
--- a/includes/save.h
+++ b/includes/save.h
@@ -3,15 +3,21 @@
void *build_thumb(int *size, int bzip2);
+pixel *prerender_save(void *save, int size, int *width, int *height);
+
void *build_save(int *size, int orig_x0, int orig_y0, int orig_w, int orig_h, unsigned char bmap[YRES/CELL][XRES/CELL], float vx[YRES/CELL][XRES/CELL], float vy[YRES/CELL][XRES/CELL], float pv[YRES/CELL][XRES/CELL], float fvx[YRES/CELL][XRES/CELL], float fvy[YRES/CELL][XRES/CELL], sign signs[MAXSIGNS], void* partsptr);
int parse_save(void *save, int size, int replace, int x0, int y0, unsigned char bmap[YRES/CELL][XRES/CELL], float vx[YRES/CELL][XRES/CELL], float vy[YRES/CELL][XRES/CELL], float pv[YRES/CELL][XRES/CELL], float fvx[YRES/CELL][XRES/CELL], float fvy[YRES/CELL][XRES/CELL], sign signs[MAXSIGNS], void* partsptr, unsigned pmap[YRES][XRES]);
+pixel *prerender_save_OPS(void *save, int size, int *width, int *height);
+
void *build_save_OPS(int *size, int orig_x0, int orig_y0, int orig_w, int orig_h, unsigned char bmap[YRES/CELL][XRES/CELL], float vx[YRES/CELL][XRES/CELL], float vy[YRES/CELL][XRES/CELL], float pv[YRES/CELL][XRES/CELL], float fvx[YRES/CELL][XRES/CELL], float fvy[YRES/CELL][XRES/CELL], sign signs[MAXSIGNS], void* partsptr);
int parse_save_OPS(void *save, int size, int replace, int x0, int y0, unsigned char bmap[YRES/CELL][XRES/CELL], float vx[YRES/CELL][XRES/CELL], float vy[YRES/CELL][XRES/CELL], float pv[YRES/CELL][XRES/CELL], float fvx[YRES/CELL][XRES/CELL], float fvy[YRES/CELL][XRES/CELL], sign signs[MAXSIGNS], void* partsptr, unsigned pmap[YRES][XRES]);
//Old save parsers, readers
+pixel *prerender_save_PSv(void *save, int size, int *width, int *height);
+
void *build_save_PSv(int *size, int orig_x0, int orig_y0, int orig_w, int orig_h, unsigned char bmap[YRES/CELL][XRES/CELL], float fvx[YRES/CELL][XRES/CELL], float fvy[YRES/CELL][XRES/CELL], sign signs[MAXSIGNS], void* partsptr);
int parse_save_PSv(void *save, int size, int replace, int x0, int y0, unsigned char bmap[YRES/CELL][XRES/CELL], float fvx[YRES/CELL][XRES/CELL], float fvy[YRES/CELL][XRES/CELL], sign signs[MAXSIGNS], void* partsptr, unsigned pmap[YRES][XRES]);