aboutsummaryrefslogtreecommitdiff
path: root/src/persistent_scene.h
diff options
context:
space:
mode:
authorJustin Berger <j.david.berger@gmail.com>2018-03-16 10:39:26 -0600
committerJustin Berger <j.david.berger@gmail.com>2018-03-16 10:39:26 -0600
commite5cc00096e7b0700c75160c62f598a8af412c082 (patch)
treeea341f6bf2af0609d888c5910a15e323cd24be73 /src/persistent_scene.h
parentfc575131ccf05c605ba567b95851976fad7c5444 (diff)
downloadlibsurvive-e5cc00096e7b0700c75160c62f598a8af412c082.tar.gz
libsurvive-e5cc00096e7b0700c75160c62f598a8af412c082.tar.bz2
Refactored how the persistence (now called sensor_activations) worked
Diffstat (limited to 'src/persistent_scene.h')
-rw-r--r--src/persistent_scene.h32
1 files changed, 0 insertions, 32 deletions
diff --git a/src/persistent_scene.h b/src/persistent_scene.h
deleted file mode 100644
index 07d9056..0000000
--- a/src/persistent_scene.h
+++ /dev/null
@@ -1,32 +0,0 @@
-#pragma once
-#include "persistent_scene.h"
-#include "stdbool.h"
-
-#ifndef USE_DOUBLE
-#define FLT double
-#define USE_DOUBLE
-#endif
-
-#include "linmath.h"
-#include <survive.h>
-
-typedef struct {
- uint32_t tolerance;
-
- // If "lengths[...]" < 0, means not a valid piece of sweep information.
- FLT angles[SENSORS_PER_OBJECT][NUM_LIGHTHOUSES][2]; // 2 Axes (Angles in LH space)
- uint32_t timecode[SENSORS_PER_OBJECT][NUM_LIGHTHOUSES][2];
-
- PoserDataIMU lastimu;
-
-} PersistentScene;
-
-typedef void (*PersistentScene_ForEachCorrespondence_fn)(SurviveObject *so, int lh, int sensor_idx, FLT *angles,
- void *);
-void PersistentScene_ForEachCorrespondence(PersistentScene *self, PersistentScene_ForEachCorrespondence_fn fn,
- SurviveObject *so, uint32_t timecode_now, void *user);
-
-void PersistentScene_add(PersistentScene *self, SurviveObject *so, PoserDataLight *lightData);
-
-bool PersistentScene_isStillValid(const PersistentScene *self, uint32_t timecode_now, uint32_t idx, int lh);
-void PersistentScene_ctor(PersistentScene *self);