static void gfx_ctx_d3d_check_window(void *data, bool *quit, bool *resize, unsigned *width, unsigned *height, unsigned frame_count) { d3d_video_t *d3d = (d3d_video_t*)data; (void)data; *quit = false; *resize = false; if (d3d_quit) *quit = true; if (d3d->should_resize) *resize = true; win32_check_window(); }
static void gfx_ctx_wgl_check_window(void *data, bool *quit, bool *resize, unsigned *width, unsigned *height, unsigned frame_count) { win32_check_window(); (void)data; (void)frame_count; *quit = g_quit; if (g_resized) { *resize = true; *width = g_resize_width; *height = g_resize_height; g_resized = false; } }
static void gfx_ctx_wgl_check_window(void *data, bool *quit, bool *resize, unsigned *width, unsigned *height, bool is_shutdown) { win32_check_window(quit, resize, width, height); switch (win32_api) { case GFX_CTX_VULKAN_API: #ifdef HAVE_VULKAN if (win32_vk.need_new_swapchain) *resize = true; #endif break; case GFX_CTX_NONE: default: break; } }
static void gfx_ctx_d3d_check_window(void *data, bool *quit, bool *resize, unsigned *width, unsigned *height, unsigned frame_count) { win32_check_window(quit, resize, width, height); }
static void gfx_ctx_gdi_check_window(void *data, bool *quit, bool *resize, unsigned *width, unsigned *height, bool is_shutdown) { win32_check_window(quit, resize, width, height); }