1 // SPDX-FileCopyrightText: Copyright 2014 Emil Velikov
2 // SPDX-License-Identifier: BSD-2-Clause
8 #include "wcore_util.h"
9 #include "wcore_window.h"
11 struct wcore_platform
;
14 struct wcore_window wcore
;
20 static inline struct wgl_window
*
21 wgl_window(struct wcore_window
*wcore
)
23 return (struct wgl_window
*)wcore
;
27 wgl_window_priv_create(struct wcore_platform
*wc_plat
,
28 struct wcore_config
*wc_config
,
33 wgl_window_priv_destroy(struct wcore_window
*wc_self
);
36 wgl_window_create(struct wcore_platform
*wc_plat
,
37 struct wcore_config
*wc_config
,
40 const intptr_t attrib_list
[]);
43 wgl_window_destroy(struct wcore_window
*wc_self
);
46 wgl_window_show(struct wcore_window
*wc_self
);
49 wgl_window_resize(struct wcore_window
*wc_self
,
50 int32_t width
, int32_t height
);
53 wgl_window_swap_buffers(struct wcore_window
*wc_self
);
55 union waffle_native_window
*
56 wgl_window_get_native(struct wcore_window
*wc_self
);