Some checks failed
studiorailgun/Renderer/pipeline/head There was a failure building this commit
58 lines
717 B
C
58 lines
717 B
C
|
|
#ifndef FLUID_GRID2_UTILITIES_H
|
|
#define FLUID_GRID2_UTILITIES_H
|
|
|
|
#include <stdint.h>
|
|
|
|
|
|
|
|
/**
|
|
* Adds from a source array to a destination array
|
|
*/
|
|
void fluid_grid2_add_source(float * x, float * s, float dt);
|
|
|
|
|
|
|
|
/**
|
|
* Sets the bounds of this cube to those of its neighbor
|
|
*/
|
|
void fluid_grid2_setBoundsToNeighborsRaw(
|
|
int chunk_mask,
|
|
int vector_dir,
|
|
float ** neighborArray
|
|
);
|
|
|
|
|
|
/**
|
|
* This exclusively copies neighbors to make sure zeroing out stuff doesn't break sim
|
|
*/
|
|
void fluid_grid2_copyNeighborsRaw(
|
|
int chunk_mask,
|
|
int cx,
|
|
int vector_dir,
|
|
float ** neighborArray
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
* Sums the density of the chunk
|
|
*/
|
|
double fluid_grid2_calculateSum(uint32_t chunk_mask, float ** d);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#endif |