summaryrefslogtreecommitdiff
path: root/src/core.h
blob: f54631e4e1326507aee62135b3ecc2c591dae94b (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
#pragma once

#include "defines.h"
#include "input.h"
#include "render_types.h"
#include "screenspace.h"
#include "text.h"
#include "threadpool.h"

typedef struct core {
  // TODO: Add application name
  renderer renderer;
  threadpool threadpool;
  input_state input;
  text_system_state text;
  screenspace_state screenspace;
  model_darray* models;
} core;

// --- Lifecycle
core* core_bringup();
void core_shutdown(core* core);

void core_input_update(core* core);