2022-12-21 07:09:29 +01:00
|
|
|
#ifndef GUARD_F247452E0BF1EC9CD9131C2A6FD281CA
|
|
|
|
#define GUARD_F247452E0BF1EC9CD9131C2A6FD281CA
|
|
|
|
|
2023-01-12 06:10:47 +01:00
|
|
|
#include "framebuffer.h"
|
|
|
|
#include "types.h"
|
2022-12-21 07:09:29 +01:00
|
|
|
#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;
|
2023-01-12 06:10:47 +01:00
|
|
|
struct sw_vec2i real_size;
|
|
|
|
i32 scaler;
|
2022-12-21 07:09:29 +01:00
|
|
|
|
2022-12-21 07:26:51 +01:00
|
|
|
struct GLFWwindow *_window;
|
2023-01-12 06:10:47 +01:00
|
|
|
struct sw_framebuffer *_scaler_fb;
|
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-31 12:14:57 +01:00
|
|
|
void sw_window_run(struct sw_window *window, void (*callback)());
|
2022-12-22 05:52:59 +01:00
|
|
|
|
2022-12-21 07:09:29 +01:00
|
|
|
#endif /* GUARD_F247452E0BF1EC9CD9131C2A6FD281CA */
|