summaryrefslogtreecommitdiff
path: root/includes/graphics.h
diff options
context:
space:
mode:
authorSimon Robertshaw <simon@hardwired.org.uk>2011-10-23 12:52:26 (GMT)
committer Simon Robertshaw <simon@hardwired.org.uk>2011-10-23 12:52:26 (GMT)
commit1c7b9d9949f4aca2ceba44b9d41420ad34c69f94 (patch)
treef917e85e29ac8c95b4ed894ea4b8b764e2290c47 /includes/graphics.h
parent014c1fbad669b0cf1abd881e696f0c7e432b3707 (diff)
downloadpowder-1c7b9d9949f4aca2ceba44b9d41420ad34c69f94.zip
powder-1c7b9d9949f4aca2ceba44b9d41420ad34c69f94.tar.gz
Pass particle pointer to graphics update function instead of index. Make PIPE use subcall to get graphics info. Cache for particle graphics properties. Stickman PSPEC_STICKMAN added and implemented
Diffstat (limited to 'includes/graphics.h')
-rw-r--r--includes/graphics.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/includes/graphics.h b/includes/graphics.h
index 962a04e..bbc0ea8 100644
--- a/includes/graphics.h
+++ b/includes/graphics.h
@@ -61,6 +61,21 @@ extern unsigned int fire_alpha[CELL*3][CELL*3];
extern pixel *fire_bg;
extern pixel *pers_bg;
+struct gcache_item
+{
+ int isready;
+ int pixel_mode;
+ int colr, colg, colb;
+ int firea, firer, fireg, fireb;
+};
+typedef struct gcache_item gcache_item;
+
+gcache_item *graphicscache;
+
+int graphics_DEFAULT(GRAPHICS_FUNC_ARGS);
+
+void prepare_graphicscache();
+
void draw_rgba_image(pixel *vid, unsigned char *data, int x, int y, float a);
void *ptif_pack(pixel *src, int w, int h, int *result_size);