17 #ifndef WIN32_COMMON_H__ 18 #define WIN32_COMMON_H__ 23 #define WIN32_LEAN_AND_MEAN 25 #if _WIN32_WINNT <= 0x0400 27 #define COMPILE_MULTIMON_STUBS 36 #include "../../driver.h" 37 #include "../video_driver.h" 40 #include "../../ui/drivers/ui_win32_resource.h" 41 #include "../../ui/drivers/ui_win32.h" 66 #if !defined(__WINRT__) 71 RECT *rect, RECT *mon_rect, DWORD *style);
84 RECT *mon_rect,
unsigned width,
102 bool fullscreen,
bool windowed_full,
void *rect_data);
125 #if defined(HAVE_D3D8) || defined(HAVE_D3D9) || defined (HAVE_D3D10) || defined (HAVE_D3D11) || defined (HAVE_D3D12) 126 LRESULT CALLBACK WndProcD3D(HWND hwnd,
UINT message,
127 WPARAM wparam, LPARAM lparam);
130 #if defined(HAVE_OPENGL) || defined(HAVE_VULKAN) 131 LRESULT CALLBACK WndProcGL(HWND hwnd,
UINT message,
132 WPARAM wparam, LPARAM lparam);
136 WPARAM wparam, LPARAM lparam);
139 BOOL IsIconic(HWND hwnd);
bool win32_get_video_output(DEVMODE *dm, int mode, size_t len)
Definition: win32_common.c:1560
bool win32_window_init(WNDCLASSEX *wndclass, bool fullscreen, const char *class_name)
Definition: ui_win32.c:61
RETRO_BEGIN_DECLS unsigned g_win32_resize_width
Definition: win32_common.c:206
GLenum mode
Definition: glext.h:6857
LRESULT win32_menu_loop(HWND owner, WPARAM wparam)
Definition: ui_win32.c:136
#define RETRO_BEGIN_DECLS
Definition: retro_common_api.h:41
void win32_set_style(MONITORINFOEX *current_mon, HMONITOR *hm_to_use, unsigned *width, unsigned *height, bool fullscreen, bool windowed_full, RECT *rect, RECT *mon_rect, DWORD *style)
Definition: win32_common.c:1200
bool win32_taskbar_is_created(void)
Definition: win32_common.c:265
void win32_monitor_from_window(void)
Definition: win32_common.c:357
void win32_check_window(bool *quit, bool *resize, unsigned *width, unsigned *height)
Definition: win32_common.c:1108
bool win32_load_content_from_gui(const char *szFilename)
Definition: win32_common.c:434
GLenum GLsizei len
Definition: glext.h:7389
void win32_monitor_get_info(void)
Definition: win32_common.c:385
GLboolean enable
Definition: glext.h:12027
int win32_change_display_settings(const char *str, void *devmode_data, unsigned flags)
Definition: win32_common.c:372
void win32_get_video_output_next(unsigned *width, unsigned *height)
Definition: win32_common.c:1530
static const bool fullscreen
Definition: config.def.h:108
HWND win32_get_window(void)
Definition: win32_common.c:1399
display_metric_types
Definition: video_driver.h:105
void create_gdi_context(HWND hwnd, bool *quit)
Definition: gdi_ctx.c:337
bool win32_has_focus(void)
Definition: win32_common.c:1381
bool win32_suppress_screensaver(void *data, bool enable)
Definition: win32_common.c:1131
bool win32_get_metrics(void *data, enum display_metric_types type, float *value)
Definition: win32_common.c:1031
void win32_set_window(unsigned *width, unsigned *height, bool fullscreen, bool windowed_full, void *rect_data)
Definition: win32_common.c:1264
ui_window_win32_t main_window
Definition: win32_common.c:213
Definition: ui_win32.h:40
void win32_destroy_window(void)
Definition: win32_common.c:1414
GLenum type
Definition: glext.h:6233
bool win32_set_video_mode(void *data, unsigned width, unsigned height, bool fullscreen)
Definition: win32_common.c:1302
static uint64_t state[MAX_PADS]
Definition: xenon360_input.c:33
GLenum GLuint GLenum GLsizei const GLchar * message
Definition: glext.h:6233
void win32_get_video_output_size(unsigned *width, unsigned *height)
Definition: win32_common.c:1572
bool g_win32_restore_desktop
Definition: win32_common.c:195
#define RETRO_END_DECLS
Definition: retro_common_api.h:42
unsigned int BOOL
Definition: gctypes.h:51
void win32_monitor_init(void)
Definition: win32_common.c:1065
void win32_show_cursor(bool state)
Definition: win32_common.c:1098
GLint GLint GLsizei width
Definition: glext.h:6293
LRESULT CALLBACK WndProcGDI(HWND hwnd, UINT message, WPARAM wparam, LPARAM lparam)
Definition: win32_common.c:867
Definition: glslang_tab.cpp:136
void win32_window_reset(void)
Definition: win32_common.c:1408
void create_graphics_context(HWND hwnd, bool *quit)
Definition: wgl_ctx.c:320
GLsizei const GLfloat * value
Definition: glext.h:6709
bool gdi_has_menu_frame(void)
Definition: gdi_gfx.c:638
unsigned g_win32_resize_height
Definition: win32_common.c:207
float win32_get_refresh_rate(void *data)
Definition: win32_common.c:1466
void win32_get_video_output_prev(unsigned *width, unsigned *height)
Definition: win32_common.c:1425
void win32_set_taskbar_created(bool created)
Definition: win32_common.c:270
GLbitfield flags
Definition: glext.h:7828
void win32_monitor_info(void *data, void *hm_data, unsigned *mon_id)
Definition: win32_common.c:397
bool win32_window_create(void *data, unsigned style, RECT *mon_rect, unsigned width, unsigned height, bool fullscreen)
Definition: win32_common.c:965
const char *const str
Definition: portlistingparse.c:18
GLint GLint GLsizei GLsizei height
Definition: glext.h:6293
bool g_win32_inited
Definition: win32_common.c:198