Gravitaaaay (Needs tweeking for performance)

This commit is contained in:
Simon Robertshaw
2011-04-22 17:06:09 +01:00
parent a75de30782
commit 13ff21bb22
6 changed files with 90 additions and 2 deletions

View File

@@ -2,6 +2,11 @@
#define AIR_H
#include "defines.h"
extern float ogravmap[YRES/CELL][XRES/CELL];
extern float gravmap[YRES/CELL][XRES/CELL];
extern float gravx[YRES/CELL][XRES/CELL];
extern float 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];
@@ -16,6 +21,8 @@ extern float kernel[9];
void make_kernel(void);
void update_grav(void);
void update_air(void);
#endif