Initial
This commit is contained in:
parent
591cbd03bb
commit
d886a1c2f2
5 changed files with 158 additions and 0 deletions
37
simulation.h
Normal file
37
simulation.h
Normal file
|
@ -0,0 +1,37 @@
|
|||
//
|
||||
// Created by johan on 2025-01-25.
|
||||
//
|
||||
|
||||
#ifndef SIMULATION_H
|
||||
#define SIMULATION_H
|
||||
namespace simulation
|
||||
{
|
||||
enum Fluid
|
||||
{
|
||||
VACUUM = 0,
|
||||
WATER,
|
||||
MERCURY
|
||||
};
|
||||
|
||||
struct SimulationGrid
|
||||
{
|
||||
unsigned int* cells;
|
||||
unsigned char x_max;
|
||||
unsigned char y_max;
|
||||
unsigned char z_max;
|
||||
};
|
||||
|
||||
void step(
|
||||
double millisecondsSinceLastStep,
|
||||
SimulationGrid* input,
|
||||
SimulationGrid* output);
|
||||
|
||||
unsigned int getCellOffset(
|
||||
unsigned char x,
|
||||
unsigned char y,
|
||||
unsigned char z,
|
||||
SimulationGrid* grid);
|
||||
|
||||
}
|
||||
|
||||
#endif //SIMULATION_H
|
Loading…
Add table
Add a link
Reference in a new issue