]> git.lizzy.rs Git - dragonblocks_alpha.git/blob - src/client/window.h
aae5ed617535654c74ea02d53ec223ab380d3311
[dragonblocks_alpha.git] / src / client / window.h
1 #ifndef _WINDOW_H_
2 #define _WINDOW_H_
3
4 #include <GLFW/glfw3.h>
5 #include <linmath.h/linmath.h>
6 #include <stdbool.h>
7 #include "types.h"
8
9 extern struct Window {
10         int width, height;
11         GLFWwindow *handle;
12         bool fullscreen;
13         f32 fov;
14         mat4x4 projection;
15 } window;
16
17 void window_init();
18 void window_enter_fullscreen();
19 void window_exit_fullscreen();
20
21 #endif // _WINDOW_H_