mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-08-26 17:34:35 +02:00
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:
@@ -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);
|
||||
|
Reference in New Issue
Block a user