hachem.wtf
aboutsummaryrefslogtreecommitdiff
path: root/src/core/application.h
blob: 4a2bc5c9e53bab6dd742d44c8a73e73edf02b681 (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 <GLFW/glfw3.h>

#define GAME_WINDOW_WIDTH  1920
#define GAME_WINDOW_HEIGHT 1080

#define DEBUG_WINDOW_WIDTH  800
#define DEBUG_WINDOW_HEIGHT 800

struct Application
{
    struct GLFWwindow* game_window;
    struct GLFWwindow* debug_window;
};

struct Application* application_create(void);

void application_render_game(struct Application*);
void application_render_debug(struct Application*);
void application_update(struct Application*);
void application_run(struct Application*);

void application_destroy(struct Application*);