aboutsummaryrefslogtreecommitdiff
path: root/src/gyroscope.h
diff options
context:
space:
mode:
authornathansmithsmith <nathansmith7@mailfence.com>2023-09-23 18:09:54 -0600
committernathansmithsmith <nathansmith7@mailfence.com>2023-09-23 18:09:54 -0600
commit6ba19e2332162de3225d60ae2a377a894ab7299f (patch)
treeda67dc163cafcd980c5bfc979aa66a453d655464 /src/gyroscope.h
parent2dca93d13705ddabfb198680039b839ae15852d8 (diff)
Better gyroscope rotation
Diffstat (limited to 'src/gyroscope.h')
-rw-r--r--src/gyroscope.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gyroscope.h b/src/gyroscope.h
index c8156cc..6a86e11 100644
--- a/src/gyroscope.h
+++ b/src/gyroscope.h
@@ -5,6 +5,7 @@
#define GYROSCOPE_LINE_THICKNESS 2.0
#define GYROSCOPE_TEXTURE_SIZE 80
+#define GYROSCOPE_CAMERA_DISTANCE 3.0
// The gyroscope is rended in 3d but not in the main scene.
// We use a render texture to get the gyroscope render onto the screen.
@@ -18,6 +19,7 @@ void initGyroscope(Gyroscope * gyroscope);
void closeGyroscope(Gyroscope * gyroscope);
void resetGyroscopePosition(Gyroscope * gyroscope);
+
void drawGyroscope(Game * game, Gyroscope * gyroscope);
#endif