diff options
| author | 2026-11-08 00:37:41 +0000 | |
|---|---|---|
| committer | 2026-11-08 00:37:41 +0000 | |
| commit | 1cf06615f97bc27f732a880e89e9366140095bf1 (patch) | |
| tree | a02c356c64b150c164fd72254da33d872f572957 /src/cpus.h | |
| download | coursework-master.tar.gz | |
Diffstat (limited to 'src/cpus.h')
| -rw-r--r-- | src/cpus.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/src/cpus.h b/src/cpus.h new file mode 100644 index 0000000..71fde22 --- /dev/null +++ b/src/cpus.h | |||
| @@ -0,0 +1,24 @@ | |||
| 1 | #ifndef INCLUDED_CPUS_H | ||
| 2 | #define INCLUDED_CPUS_H | ||
| 3 | |||
| 4 | #include <raylib.h> | ||
| 5 | #include <stdbool.h> | ||
| 6 | #include "config.h" | ||
| 7 | #include "caches.h" | ||
| 8 | |||
| 9 | typedef struct cpu { | ||
| 10 | Rectangle rec; | ||
| 11 | char label[6]; | ||
| 12 | Vector2 label_origin; | ||
| 13 | Vector2 label_position; | ||
| 14 | int highlighted; | ||
| 15 | } *CPU; | ||
| 16 | |||
| 17 | extern CPU cpus[CPU_COUNT]; | ||
| 18 | extern int cpu_button_hover; | ||
| 19 | |||
| 20 | void init_cpu (CPU, CACHE); | ||
| 21 | bool handle_cpu_buttons (CPU); | ||
| 22 | void draw_cpu (CPU); | ||
| 23 | |||
| 24 | #endif | ||
