aboutsummaryrefslogtreecommitdiff
path: root/src/cpus.h
blob: 71fde22fed18f2b61dcd2981058f0cce99adc500 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#ifndef INCLUDED_CPUS_H
#define INCLUDED_CPUS_H

#include <raylib.h>
#include <stdbool.h>
#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