Functions to get and set OS Window size

This commit is contained in:
Kovid Goyal
2021-07-25 12:58:58 +05:30
parent 2e01c1f37e
commit 3d9b52fbc2
4 changed files with 67 additions and 1 deletions

View File

@@ -227,6 +227,9 @@ void gl_init(void);
void remove_vao(ssize_t vao_idx);
bool remove_os_window(id_type os_window_id);
void make_os_window_context_current(OSWindow *w);
void set_os_window_size(OSWindow *os_window, int x, int y);
void get_os_window_size(OSWindow *os_window, int *w, int *h, int *fw, int *fh);
void get_os_window_content_scale(OSWindow *os_window, double *xdpi, double *ydpi, float *xscale, float *yscale);
void update_os_window_references(void);
void mark_os_window_for_close(OSWindow* w, CloseRequest cr);
void update_os_window_viewport(OSWindow *window, bool);