about summary refs log tree commit diff stats
path: root/src/pong.h
diff options
context:
space:
mode:
authorCharadon <dev@iotib.net>2022-06-07 17:49:55 -0400
committerCharadon <dev@iotib.net>2022-06-07 17:49:55 -0400
commitb8dda4d4a5385772c3ee997ae3948d52026a06e2 (patch)
tree9535de8a53084a45ea1bd209ed435a5217966920 /src/pong.h
parent528f41896e4d5a0a52c080302b75c143bb2c9b05 (diff)
downloadPong-C-b8dda4d4a5385772c3ee997ae3948d52026a06e2.tar.gz
Moved to SDL threads
Diffstat (limited to 'src/pong.h')
-rw-r--r--src/pong.h11
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);
pecs/ranger/blame/ranger.py?h=v1.2.0&id=4d6c426ff8d9d304fe97c17249fbfb3b93acf16d'>^
4d6c426f ^
5e449699 ^
4d6c426f ^
5e449699 ^
4d6c426f ^

a66c4a26 ^
3de15ddd ^
a66c4a26 ^


f027adc0 ^
5c210a96 ^

3de15ddd ^

5c210a96 ^
fb275079 ^

5c210a96 ^
3d566884 ^
a1d7ed6e ^
3d566884 ^
f8e96a97 ^
9bc5d95c ^

465bff73 ^




f027adc0 ^
f8e96a97 ^

0b5c4cbe ^
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68