diff options
author | nathansmithsmith <nathansmith7@mailfence.com> | 2023-09-25 21:35:26 -0600 |
---|---|---|
committer | nathansmithsmith <nathansmith7@mailfence.com> | 2023-09-25 21:35:26 -0600 |
commit | 6f7b9d89c4e65e99196a751e4c43711a573e9eb4 (patch) | |
tree | 6b53e06686efdefa00f3b244bdfaa93553c49ac8 /src/cameras.h | |
parent | 8a5dfe2ad57757a38444f736da115c5def870ec5 (diff) |
Now switching cameras in game
Diffstat (limited to 'src/cameras.h')
-rw-r--r-- | src/cameras.h | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/cameras.h b/src/cameras.h index c892ee1..debd658 100644 --- a/src/cameras.h +++ b/src/cameras.h @@ -3,8 +3,11 @@ #ifndef CAMERAS_H #define CAMERAS_H -#define CAMERA_DIS 5.0 -#define CAMERA_COUNT 1 +#define FIRST_PERSON_CAMERA_DISTANCE 5.0 + +#define THIRD_PERSON_CAMERA_DISTANCE (Vector3){0.0, 10.0, -20.0} + +#define CAMERA_COUNT 2 // Each camera has a game loop callback and a init callback. typedef void (*CameraInitCb)(Game * game, Camera3D * camera); @@ -14,7 +17,8 @@ extern const CameraInitCb cameraInitCallbacks[CAMERA_COUNT]; extern const CameraCb cameraCallbacks[CAMERA_COUNT]; typedef enum CameraId { - FIRST_PERSON_CAMERA + FIRST_PERSON_CAMERA, + THIRD_PERSON_CAMERA } CameraId; // A array of the cameras. |