-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathwindow.h
48 lines (32 loc) · 903 Bytes
/
window.h
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
39
40
41
42
43
44
45
46
47
48
#ifndef _WINDOW_H_
#define _WINDOW_H_
#include "insight.h"
#include "input.h"
#include <GLFW/glfw3.h>
struct window {
int width;
int height;
int fullscreen;
double deltaTime;
double lastTime;
GLFWwindow* windowHandeler;
const GLFWvidmode* videoMode;
input_t* input;
};
/*
*/
INSIGHT_API struct window* mk_window(int width, int height, const char* title, int fullscreen);
/*
*/
INSIGHT_API int window_is_running(struct window* This);
/*! Sets new size of the window */
INSIGHT_API void window_set_size(struct window* This, int width, int height);
/*! Sets if the window should close or not */
INSIGHT_API void window_set_should_close(struct window* This, int value);
/*
*/
INSIGHT_API void WindowFinalize(struct window* This);
/*
*/
void (*_window_resize_callback)(GLFWwindow* window, int width, int height);
#endif /* !_WINDOW_H_ */