diff options
author | Charadon <dev@iotib.net> | 2022-06-07 17:49:55 -0400 |
---|---|---|
committer | Charadon <dev@iotib.net> | 2022-06-07 17:49:55 -0400 |
commit | b8dda4d4a5385772c3ee997ae3948d52026a06e2 (patch) | |
tree | 9535de8a53084a45ea1bd209ed435a5217966920 /src/pong.h | |
parent | 528f41896e4d5a0a52c080302b75c143bb2c9b05 (diff) | |
download | Pong-C-b8dda4d4a5385772c3ee997ae3948d52026a06e2.tar.gz |
Moved to SDL threads
Diffstat (limited to 'src/pong.h')
-rw-r--r-- | src/pong.h | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/src/pong.h b/src/pong.h index 76fa05d..15ba223 100644 --- a/src/pong.h +++ b/src/pong.h @@ -1,9 +1,14 @@ #ifndef PONG_H #define PONG_H +#include <SDL2/SDL_atomic.h> #define MOUSE_LEFT_BUTTON MOUSE_BUTTON_LEFT #include "raylib.h" -#include "SDL2/SDL.h" -#include "SDL2/SDL_mixer.h" +#include <SDL2/SDL.h> +#include <SDL2/SDL_atomic.h> +#include <SDL2/SDL_audio.h> +#include <SDL2/SDL_mixer.h> +#include <SDL2/SDL_mutex.h> +#include <SDL2/SDL_thread.h> #include "sounds.h" #include <stdatomic.h> #include <stdio.h> @@ -37,7 +42,7 @@ struct Balls { extern int Difficulty; extern bool GameGoing; -extern atomic_int Ticks; +extern SDL_atomic_t Ticks; extern char VersionString[256]; void enemy(struct Players *Enemy, struct Balls ball); |