summaryrefslogtreecommitdiff
path: root/includes
diff options
context:
space:
mode:
authorSimon Robertshaw <simon@hardwired.org.uk>2011-04-24 16:49:33 (GMT)
committer Simon Robertshaw <simon@hardwired.org.uk>2011-04-24 16:49:33 (GMT)
commit3acf9aae2aac9865cead77870010681cb390ba19 (patch)
treedf28d9dc831c0b1716a35fd77d4a3c72baed6601 /includes
parentdb427e4cdd240f46eafc17a76bf27de347ca8a96 (diff)
downloadpowder-3acf9aae2aac9865cead77870010681cb390ba19.zip
powder-3acf9aae2aac9865cead77870010681cb390ba19.tar.gz
Asynchronous thread for gravity processing
Diffstat (limited to 'includes')
-rw-r--r--includes/air.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/includes/air.h b/includes/air.h
index eda3976..4b167a3 100644
--- a/includes/air.h
+++ b/includes/air.h
@@ -2,11 +2,15 @@
#define AIR_H
#include "defines.h"
-extern float ogravmap[YRES/CELL][XRES/CELL];
-extern float gravmap[YRES/CELL][XRES/CELL];
+extern float gravmap[YRES/CELL][XRES/CELL]; //Maps to be used by the main thread
extern float gravx[YRES/CELL][XRES/CELL];
extern float gravy[YRES/CELL][XRES/CELL];
+extern float th_ogravmap[YRES/CELL][XRES/CELL]; // Maps to be processed by the gravity thread
+extern float th_gravmap[YRES/CELL][XRES/CELL];
+extern float th_gravx[YRES/CELL][XRES/CELL];
+extern float th_gravy[YRES/CELL][XRES/CELL];
+
extern float vx[YRES/CELL][XRES/CELL], ovx[YRES/CELL][XRES/CELL];
extern float vy[YRES/CELL][XRES/CELL], ovy[YRES/CELL][XRES/CELL];
extern float pv[YRES/CELL][XRES/CELL], opv[YRES/CELL][XRES/CELL];