diff options
author | nathansmithsmith <nathansmith7@mailfence.com> | 2023-09-22 20:09:37 -0600 |
---|---|---|
committer | nathansmithsmith <nathansmith7@mailfence.com> | 2023-09-22 20:09:37 -0600 |
commit | 2dca93d13705ddabfb198680039b839ae15852d8 (patch) | |
tree | af9cc6f334e519007667d6070a33001f6c46dcef /src/gyroscope.h | |
parent | 7224002dcf90a2c12db9b031fdeb71bc29414e71 (diff) |
Forgot some filees for the last commit
Diffstat (limited to 'src/gyroscope.h')
-rw-r--r-- | src/gyroscope.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/src/gyroscope.h b/src/gyroscope.h new file mode 100644 index 0000000..c8156cc --- /dev/null +++ b/src/gyroscope.h @@ -0,0 +1,23 @@ +#include "gameCommon.h" + +#ifndef GYROSCOPE_H +#define GYROSCOPE_H + +#define GYROSCOPE_LINE_THICKNESS 2.0 +#define GYROSCOPE_TEXTURE_SIZE 80 + +// 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. +typedef struct Gyroscope { + Vector2 position; + Camera3D camera; + RenderTexture texture; +} Gyroscope; + +void initGyroscope(Gyroscope * gyroscope); +void closeGyroscope(Gyroscope * gyroscope); + +void resetGyroscopePosition(Gyroscope * gyroscope); +void drawGyroscope(Game * game, Gyroscope * gyroscope); + +#endif |