summaryrefslogtreecommitdiff
path: root/graphics.h
diff options
context:
space:
mode:
authorSimon <simon@hardwired.org.uk>2010-08-26 13:46:56 (GMT)
committer Simon <simon@hardwired.org.uk>2010-08-26 13:46:56 (GMT)
commitbb88587d9dd932c9f67add15f2ca7c83b02a5371 (patch)
tree5457555797fafc6e5a00918c5daab1512df922f1 /graphics.h
parentf426ee42e7170260088b78a1091bba43713822fe (diff)
downloadpowder-bb88587d9dd932c9f67add15f2ca7c83b02a5371.zip
powder-bb88587d9dd932c9f67add15f2ca7c83b02a5371.tar.gz
More rearrangement, particle drawing in own function
Diffstat (limited to 'graphics.h')
-rw-r--r--graphics.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/graphics.h b/graphics.h
index 7779b09..3932a2f 100644
--- a/graphics.h
+++ b/graphics.h
@@ -1,6 +1,8 @@
#ifndef GRAPHICS_H
#define GRAPHICS_H
#include <SDL/SDL.h>
+#include "defines.h"
+#include "hmap.h"
#ifdef PIX16
#define PIXELSIZE 2
@@ -40,6 +42,10 @@ extern unsigned cmode;
extern SDL_Surface *sdl_scrn;
extern int sdl_scale;
+extern unsigned char fire_r[YRES/CELL][XRES/CELL];
+extern unsigned char fire_g[YRES/CELL][XRES/CELL];
+extern unsigned char fire_b[YRES/CELL][XRES/CELL];
+
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);