diff options
author | kdx <kikoodx@paranoici.org> | 2023-11-24 08:30:06 +0100 |
---|---|---|
committer | kdx <kikoodx@paranoici.org> | 2023-11-24 08:30:21 +0100 |
commit | 659c92f1b6eb6646334e66a4f1204157f5855faa (patch) | |
tree | e04b0e4d44d8f9737e94935b9533c756e7aad50a /headers | |
parent | f6d8a551c902b1e61028eecc8061d5e50a230572 (diff) | |
download | tzr-659c92f1b6eb6646334e66a4f1204157f5855faa.tar.gz |
camera system
Diffstat (limited to 'headers')
-rw-r--r-- | headers/TZR_camera.h | 5 | ||||
-rw-r--r-- | headers/TZR_globals.h | 2 |
2 files changed, 7 insertions, 0 deletions
diff --git a/headers/TZR_camera.h b/headers/TZR_camera.h new file mode 100644 index 0000000..16a536a --- /dev/null +++ b/headers/TZR_camera.h @@ -0,0 +1,5 @@ +#pragma once + +void TZR_SetCamera(float x, float y); +int TZR_GetCameraX(void); +int TZR_GetCameraY(void); diff --git a/headers/TZR_globals.h b/headers/TZR_globals.h index 3c2758e..208ad0b 100644 --- a/headers/TZR_globals.h +++ b/headers/TZR_globals.h @@ -29,6 +29,8 @@ extern TZR_Joystick *___tzr_joysticks; extern size_t ___tzr_joysticks_capacity; extern size_t ___tzr_joysticks_size; extern SDL_BlendMode ___tzr_blendmode; +extern int ___tzr_camera_x; +extern int ___tzr_camera_y; #ifdef TZR_SOLOUD extern Soloud ___tzr_soloud; |