mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-08-26 01:23:37 +02:00
Move Newtonian gravity into a new file
This commit is contained in:
committed by
Simon Robertshaw
parent
20dd54f36e
commit
934d1da66e
@@ -2,24 +2,6 @@
|
||||
#define AIR_H
|
||||
#include "defines.h"
|
||||
|
||||
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 gravp[YRES/CELL][XRES/CELL];
|
||||
extern float *gravpf;
|
||||
extern float *gravxf;
|
||||
extern float *gravyf;
|
||||
extern unsigned gravmask[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 *th_gravpf;
|
||||
extern float *th_gravxf;
|
||||
extern float *th_gravyf;
|
||||
extern float th_gravp[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];
|
||||
@@ -39,13 +21,6 @@ void make_kernel(void);
|
||||
|
||||
void update_airh(void);
|
||||
|
||||
void update_grav(void);
|
||||
|
||||
#ifdef GRAVFFT
|
||||
void grav_fft_init();
|
||||
void grav_fft_cleanup();
|
||||
#endif
|
||||
|
||||
void update_air(void);
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user