aboutsummaryrefslogtreecommitdiff
path: root/src/cpus.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/cpus.h')
-rw-r--r--src/cpus.h24
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
9typedef struct cpu {
10 Rectangle rec;
11 char label[6];
12 Vector2 label_origin;
13 Vector2 label_position;
14 int highlighted;
15} *CPU;
16
17extern CPU cpus[CPU_COUNT];
18extern int cpu_button_hover;
19
20void init_cpu (CPU, CACHE);
21bool handle_cpu_buttons (CPU);
22void draw_cpu (CPU);
23
24#endif