2022-12-21 07:09:29 +01:00
|
|
|
#ifndef GUARD_F247452E0BF1EC9CD9131C2A6FD281CA
|
|
|
|
#define GUARD_F247452E0BF1EC9CD9131C2A6FD281CA
|
|
|
|
|
|
|
|
#include "vec2i.h"
|
|
|
|
|
2022-12-21 07:26:51 +01:00
|
|
|
struct GLFWwindow;
|
2022-12-21 07:09:29 +01:00
|
|
|
|
2022-12-22 10:05:39 +01:00
|
|
|
struct sw_window {
|
|
|
|
struct sw_vec2i size;
|
2022-12-21 07:09:29 +01:00
|
|
|
|
2022-12-21 07:26:51 +01:00
|
|
|
struct GLFWwindow *_window;
|
2022-12-21 07:09:29 +01:00
|
|
|
};
|
|
|
|
|
2022-12-22 10:05:39 +01:00
|
|
|
struct sw_window *sw_window_create(struct sw_vec2i size, char *title);
|
2022-12-21 07:09:29 +01:00
|
|
|
|
2022-12-22 10:05:39 +01:00
|
|
|
void sw_window_run(struct sw_window *window);
|
2022-12-22 05:52:59 +01:00
|
|
|
|
2022-12-21 07:09:29 +01:00
|
|
|
#endif /* GUARD_F247452E0BF1EC9CD9131C2A6FD281CA */
|