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

This commit is contained in:
Simon Robertshaw
2011-10-23 13:52:26 +01:00
parent 014c1fbad6
commit 1c7b9d9949
17 changed files with 424 additions and 253 deletions

View File

@@ -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);