summaryrefslogtreecommitdiff
path: root/src/physics.h
diff options
context:
space:
mode:
authorPaweł Redman <pawel.redman@gmail.com>2016-04-01 19:28:22 +0200
committerPaweł Redman <pawel.redman@gmail.com>2016-04-01 19:28:22 +0200
commit2a8925a8612b5e632b0dbaa762ce834ad61704a8 (patch)
treea39adf291a2bc9d5ce85ae1e728e39a681baadf0 /src/physics.h
parenta5677db21bee18f8e5b67ba2b0615403ebe6dc8a (diff)
Yee grid.
Diffstat (limited to 'src/physics.h')
-rw-r--r--src/physics.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/physics.h b/src/physics.h
index 533d8a4..92ec6fd 100644
--- a/src/physics.h
+++ b/src/physics.h
@@ -21,14 +21,15 @@ enum {
PHY_CMD_QUIT,
PHY_CMD_PAUSE,
PHY_CMD_RESUME,
- PHY_CMD_STEP
+ PHY_CMD_STEP,
+ PHY_CMD_RESET
};
typedef struct {
phy_field_info field_info;
phy_field_em fields[3];
float *field_eps, *field_mu; //permittivity and permeability
- float time;
+ float time, time_delta;
// UI stuff
bool running;
@@ -39,7 +40,7 @@ typedef struct {
void phy_sim_destroy(phy_sim *sim);
int phy_sim_create(phy_sim *sim);
void phy_sim_compute_const_fields(phy_sim *sim);
-void phy_sim_step(phy_sim *sim, float dt);
+void phy_sim_step(phy_sim *sim);
int phy_thread(phy_sim *sim);