From 1cf06615f97bc27f732a880e89e9366140095bf1 Mon Sep 17 00:00:00 2001 From: Martin Michalec Date: Sun, 8 Nov 2026 03:37:41 +0300 Subject: publish --- src/cpus.h | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 src/cpus.h (limited to 'src/cpus.h') 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 @@ +#ifndef INCLUDED_CPUS_H +#define INCLUDED_CPUS_H + +#include +#include +#include "config.h" +#include "caches.h" + +typedef struct cpu { + Rectangle rec; + char label[6]; + Vector2 label_origin; + Vector2 label_position; + int highlighted; +} *CPU; + +extern CPU cpus[CPU_COUNT]; +extern int cpu_button_hover; + +void init_cpu (CPU, CACHE); +bool handle_cpu_buttons (CPU); +void draw_cpu (CPU); + +#endif -- cgit v1.3.1