blob: ac07c50e5727c65050814129949d5f7e47384fe9 (
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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
#pragma once
#include "input.h"
#include "mem.h"
#include "render_types.h"
#include "scene.h"
#include "screenspace.h"
#include "terrain.h"
#include "text.h"
TYPED_POOL(Model, Model)
#define MODEL_GET(h) (Model_pool_get(&g_core.models, h))
typedef struct GLFWwindow GLFWwindow;
typedef struct Core {
const char* app_name;
GLFWwindow* window;
Renderer* renderer;
Input_State input;
Model_pool models;
} Core;
extern Core g_core;
struct Renderer;
Core* get_global_core();
/** @brief Throws error if the core cannot be instantiated */
void Core_Bringup();
void Core_Shutdown();
bool ShouldExit();
struct Renderer* Core_GetRenderer(Core* core);
void Frame_Begin();
void Frame_Draw();
void Frame_End();
|