aboutsummaryrefslogtreecommitdiff
path: root/attic/dave/fileutil.h
diff options
context:
space:
mode:
authorCNLohr <charles@cnlohr.com>2018-04-15 20:41:39 -0400
committerGitHub <noreply@github.com>2018-04-15 20:41:39 -0400
commit63daf8c314ed3111fb8d45822c547f5e526d84bd (patch)
tree927d843a553ef53217c283f19f16728b0ca51c50 /attic/dave/fileutil.h
parent39a63badbb5864314a9d9e18c0871718ac5d2912 (diff)
parent69b31d3c3b1957e59d7962722a4145bfb0db16f9 (diff)
downloadlibsurvive-63daf8c314ed3111fb8d45822c547f5e526d84bd.tar.gz
libsurvive-63daf8c314ed3111fb8d45822c547f5e526d84bd.tar.bz2
Merge pull request #129 from cnlohr/tcc_build
Improved Makefile system.
Diffstat (limited to 'attic/dave/fileutil.h')
-rw-r--r--attic/dave/fileutil.h35
1 files changed, 35 insertions, 0 deletions
diff --git a/attic/dave/fileutil.h b/attic/dave/fileutil.h
new file mode 100644
index 0000000..e5da244
--- /dev/null
+++ b/attic/dave/fileutil.h
@@ -0,0 +1,35 @@
+#ifndef _fileutil_h_
+#define _fileutil_h_
+
+#include <pthread.h>
+#include "os_generic.h"
+
+void LoadLighthousePos(
+ const char *path,
+ float *x, float *y, float *z,
+ float *qi, float *qj, float *qk, float *qreal);
+
+
+// first 32 are hmd, next 24 wm0 next 24 wm1
+#define NUM_HMD 80
+#define NUM_SWEEP 4
+#define SWEEP_LX 0
+#define SWEEP_LY 1
+#define SWEEP_RX 2
+#define SWEEP_RY 3
+void LoadHmdProcessedDataAngles(
+ const char *path,
+ double angle[NUM_SWEEP][NUM_HMD]);
+
+
+extern og_mutex_t read_mutex;
+extern og_thread_t read_thread;
+extern double read_hmdAngles[NUM_SWEEP][NUM_HMD];
+extern int read_hmdAngleViewed[NUM_SWEEP][NUM_HMD];
+extern int read_frameno;
+void *ThreadReadHmtAngles(void *junk);
+
+
+#endif // __fileutil_h_
+
+