![]() |
Wise&mystical
1.0
Project about Europe
|
#include <wctype.h>#include <windows.h>#include <dinput.h>#include <xinput.h>#include <dbt.h>#include "win32_joystick.h"#include "wgl_context.h"
Include dependency graph for win32_platform.h:Go to the source code of this file.
Classes | |
| struct | CHANGEFILTERSTRUCT |
| struct | DWM_BLURBEHIND |
| struct | VkWin32SurfaceCreateInfoKHR |
| struct | _GLFWwindowWin32 |
| struct | _GLFWlibraryWin32 |
| struct | _GLFWmonitorWin32 |
| struct | _GLFWcursorWin32 |
| struct | _GLFWtimerWin32 |
| struct | _GLFWtlsWin32 |
| struct | _GLFWmutexWin32 |
Macros | |
| #define | VC_EXTRALEAN |
| #define | WIN32_LEAN_AND_MEAN |
| #define | UNICODE |
| #define | WINVER 0x0501 |
| #define | _WIN32_WINNT 0x0501 |
| #define | DIRECTINPUT_VERSION 0x0800 |
| #define | OEMRESOURCE |
| #define | WM_MOUSEHWHEEL 0x020E |
| #define | WM_DWMCOMPOSITIONCHANGED 0x031E |
| #define | WM_DWMCOLORIZATIONCOLORCHANGED 0x0320 |
| #define | WM_COPYGLOBALDATA 0x0049 |
| #define | WM_UNICHAR 0x0109 |
| #define | UNICODE_NOCHAR 0xFFFF |
| #define | WM_DPICHANGED 0x02E0 |
| #define | GET_XBUTTON_WPARAM(w) (HIWORD(w)) |
| #define | EDS_ROTATEDMODE 0x00000004 |
| #define | DISPLAY_DEVICE_ACTIVE 0x00000001 |
| #define | _WIN32_WINNT_WINBLUE 0x0603 |
| #define | _WIN32_WINNT_WIN8 0x0602 |
| #define | WM_GETDPISCALEDSIZE 0x02e4 |
| #define | USER_DEFAULT_SCREEN_DPI 96 |
| #define | OCR_HAND 32649 |
| #define | MSGFLT_ALLOW 1 |
| #define | DWM_BB_ENABLE 0x00000001 |
| #define | DWM_BB_BLURREGION 0x00000002 |
| #define | DPI_AWARENESS_CONTEXT_PER_MONITOR_AWARE_V2 ((HANDLE) -4) |
| #define | IsWindowsVistaOrGreater() |
| #define | IsWindows7OrGreater() |
| #define | IsWindows8OrGreater() |
| #define | IsWindows8Point1OrGreater() |
| #define | _glfwIsWindows10AnniversaryUpdateOrGreaterWin32() _glfwIsWindows10BuildOrGreaterWin32(14393) |
| #define | _glfwIsWindows10CreatorsUpdateOrGreaterWin32() _glfwIsWindows10BuildOrGreaterWin32(15063) |
| #define | XINPUT_CAPS_WIRELESS 0x0002 |
| #define | XINPUT_DEVSUBTYPE_WHEEL 0x02 |
| #define | XINPUT_DEVSUBTYPE_ARCADE_STICK 0x03 |
| #define | XINPUT_DEVSUBTYPE_FLIGHT_STICK 0x04 |
| #define | XINPUT_DEVSUBTYPE_DANCE_PAD 0x05 |
| #define | XINPUT_DEVSUBTYPE_GUITAR 0x06 |
| #define | XINPUT_DEVSUBTYPE_DRUM_KIT 0x08 |
| #define | XINPUT_DEVSUBTYPE_ARCADE_PAD 0x13 |
| #define | XUSER_MAX_COUNT 4 |
| #define | DIDFT_OPTIONAL 0x80000000 |
| #define | timeGetTime _glfw.win32.winmm.GetTime |
| #define | XInputGetCapabilities _glfw.win32.xinput.GetCapabilities |
| #define | XInputGetState _glfw.win32.xinput.GetState |
| #define | DirectInput8Create _glfw.win32.dinput8.Create |
| #define | SetProcessDPIAware _glfw.win32.user32.SetProcessDPIAware_ |
| #define | ChangeWindowMessageFilterEx _glfw.win32.user32.ChangeWindowMessageFilterEx_ |
| #define | EnableNonClientDpiScaling _glfw.win32.user32.EnableNonClientDpiScaling_ |
| #define | SetProcessDpiAwarenessContext _glfw.win32.user32.SetProcessDpiAwarenessContext_ |
| #define | GetDpiForWindow _glfw.win32.user32.GetDpiForWindow_ |
| #define | AdjustWindowRectExForDpi _glfw.win32.user32.AdjustWindowRectExForDpi_ |
| #define | DwmIsCompositionEnabled _glfw.win32.dwmapi.IsCompositionEnabled |
| #define | DwmFlush _glfw.win32.dwmapi.Flush |
| #define | DwmEnableBlurBehindWindow _glfw.win32.dwmapi.EnableBlurBehindWindow |
| #define | DwmGetColorizationColor _glfw.win32.dwmapi.GetColorizationColor |
| #define | SetProcessDpiAwareness _glfw.win32.shcore.SetProcessDpiAwareness_ |
| #define | GetDpiForMonitor _glfw.win32.shcore.GetDpiForMonitor_ |
| #define | RtlVerifyVersionInfo _glfw.win32.ntdll.RtlVerifyVersionInfo_ |
| #define | _GLFW_WNDCLASSNAME L"GLFW30" |
| #define | _glfw_dlopen(name) LoadLibraryA(name) |
| #define | _glfw_dlclose(handle) FreeLibrary((HMODULE) handle) |
| #define | _glfw_dlsym(handle, name) GetProcAddress((HMODULE) handle, name) |
| #define | _GLFW_PLATFORM_WINDOW_STATE _GLFWwindowWin32 win32 |
| #define | _GLFW_PLATFORM_LIBRARY_WINDOW_STATE _GLFWlibraryWin32 win32 |
| #define | _GLFW_PLATFORM_LIBRARY_TIMER_STATE _GLFWtimerWin32 win32 |
| #define | _GLFW_PLATFORM_MONITOR_STATE _GLFWmonitorWin32 win32 |
| #define | _GLFW_PLATFORM_CURSOR_STATE _GLFWcursorWin32 win32 |
| #define | _GLFW_PLATFORM_TLS_STATE _GLFWtlsWin32 win32 |
| #define | _GLFW_PLATFORM_MUTEX_STATE _GLFWmutexWin32 win32 |
Enumerations | |
| enum | PROCESS_DPI_AWARENESS { PROCESS_DPI_UNAWARE = 0 , PROCESS_SYSTEM_DPI_AWARE = 1 , PROCESS_PER_MONITOR_DPI_AWARE = 2 } |
| enum | MONITOR_DPI_TYPE { MDT_EFFECTIVE_DPI = 0 , MDT_ANGULAR_DPI = 1 , MDT_RAW_DPI = 2 , MDT_DEFAULT = MDT_EFFECTIVE_DPI } |
Functions | |
| GLFWbool | _glfwRegisterWindowClassWin32 (void) |
| void | _glfwUnregisterWindowClassWin32 (void) |
| WCHAR * | _glfwCreateWideStringFromUTF8Win32 (const char *source) |
| char * | _glfwCreateUTF8FromWideStringWin32 (const WCHAR *source) |
| BOOL | _glfwIsWindowsVersionOrGreaterWin32 (WORD major, WORD minor, WORD sp) |
| BOOL | _glfwIsWindows10BuildOrGreaterWin32 (WORD build) |
| void | _glfwInputErrorWin32 (int error, const char *description) |
| void | _glfwUpdateKeyNamesWin32 (void) |
| void | _glfwInitTimerWin32 (void) |
| void | _glfwPollMonitorsWin32 (void) |
| void | _glfwSetVideoModeWin32 (_GLFWmonitor *monitor, const GLFWvidmode *desired) |
| void | _glfwRestoreVideoModeWin32 (_GLFWmonitor *monitor) |
| void | _glfwGetMonitorContentScaleWin32 (HMONITOR handle, float *xscale, float *yscale) |
| #define _glfw_dlclose | ( | handle | ) | FreeLibrary((HMODULE) handle) |
Definition at line 288 of file win32_platform.h.
| #define _glfw_dlopen | ( | name | ) | LoadLibraryA(name) |
Definition at line 287 of file win32_platform.h.
| #define _glfw_dlsym | ( | handle, | |
| name | |||
| ) | GetProcAddress((HMODULE) handle, name) |
Definition at line 289 of file win32_platform.h.
| #define _GLFW_PLATFORM_CURSOR_STATE _GLFWcursorWin32 win32 |
Definition at line 295 of file win32_platform.h.
| #define _GLFW_PLATFORM_LIBRARY_TIMER_STATE _GLFWtimerWin32 win32 |
Definition at line 293 of file win32_platform.h.
| #define _GLFW_PLATFORM_LIBRARY_WINDOW_STATE _GLFWlibraryWin32 win32 |
Definition at line 292 of file win32_platform.h.
| #define _GLFW_PLATFORM_MONITOR_STATE _GLFWmonitorWin32 win32 |
Definition at line 294 of file win32_platform.h.
| #define _GLFW_PLATFORM_MUTEX_STATE _GLFWmutexWin32 win32 |
Definition at line 297 of file win32_platform.h.
| #define _GLFW_PLATFORM_TLS_STATE _GLFWtlsWin32 win32 |
Definition at line 296 of file win32_platform.h.
| #define _GLFW_PLATFORM_WINDOW_STATE _GLFWwindowWin32 win32 |
Definition at line 291 of file win32_platform.h.
| #define _GLFW_WNDCLASSNAME L"GLFW30" |
Definition at line 284 of file win32_platform.h.
| #define _glfwIsWindows10AnniversaryUpdateOrGreaterWin32 | ( | ) | _glfwIsWindows10BuildOrGreaterWin32(14393) |
Definition at line 179 of file win32_platform.h.
| #define _glfwIsWindows10CreatorsUpdateOrGreaterWin32 | ( | ) | _glfwIsWindows10BuildOrGreaterWin32(15063) |
Definition at line 181 of file win32_platform.h.
| #define _WIN32_WINNT 0x0501 |
Definition at line 58 of file win32_platform.h.
| #define _WIN32_WINNT_WIN8 0x0602 |
Definition at line 108 of file win32_platform.h.
| #define _WIN32_WINNT_WINBLUE 0x0603 |
Definition at line 105 of file win32_platform.h.
| #define AdjustWindowRectExForDpi _glfw.win32.user32.AdjustWindowRectExForDpi_ |
Definition at line 244 of file win32_platform.h.
| #define ChangeWindowMessageFilterEx _glfw.win32.user32.ChangeWindowMessageFilterEx_ |
Definition at line 240 of file win32_platform.h.
| #define DIDFT_OPTIONAL 0x80000000 |
Definition at line 215 of file win32_platform.h.
| #define DirectInput8Create _glfw.win32.dinput8.Create |
Definition at line 230 of file win32_platform.h.
| #define DIRECTINPUT_VERSION 0x0800 |
Definition at line 62 of file win32_platform.h.
| #define DISPLAY_DEVICE_ACTIVE 0x00000001 |
Definition at line 102 of file win32_platform.h.
| #define DPI_AWARENESS_CONTEXT_PER_MONITOR_AWARE_V2 ((HANDLE) -4) |
Definition at line 162 of file win32_platform.h.
| #define DWM_BB_BLURREGION 0x00000002 |
Definition at line 133 of file win32_platform.h.
| #define DWM_BB_ENABLE 0x00000001 |
Definition at line 132 of file win32_platform.h.
| #define DwmEnableBlurBehindWindow _glfw.win32.dwmapi.EnableBlurBehindWindow |
Definition at line 253 of file win32_platform.h.
| #define DwmFlush _glfw.win32.dwmapi.Flush |
Definition at line 252 of file win32_platform.h.
| #define DwmGetColorizationColor _glfw.win32.dwmapi.GetColorizationColor |
Definition at line 254 of file win32_platform.h.
| #define DwmIsCompositionEnabled _glfw.win32.dwmapi.IsCompositionEnabled |
Definition at line 251 of file win32_platform.h.
| #define EDS_ROTATEDMODE 0x00000004 |
Definition at line 99 of file win32_platform.h.
| #define EnableNonClientDpiScaling _glfw.win32.user32.EnableNonClientDpiScaling_ |
Definition at line 241 of file win32_platform.h.
| #define GET_XBUTTON_WPARAM | ( | w | ) | (HIWORD(w)) |
Definition at line 96 of file win32_platform.h.
| #define GetDpiForMonitor _glfw.win32.shcore.GetDpiForMonitor_ |
Definition at line 260 of file win32_platform.h.
| #define GetDpiForWindow _glfw.win32.user32.GetDpiForWindow_ |
Definition at line 243 of file win32_platform.h.
| #define IsWindows7OrGreater | ( | ) |
Definition at line 169 of file win32_platform.h.
| #define IsWindows8OrGreater | ( | ) |
Definition at line 172 of file win32_platform.h.
| #define IsWindows8Point1OrGreater | ( | ) |
Definition at line 175 of file win32_platform.h.
| #define IsWindowsVistaOrGreater | ( | ) |
Definition at line 166 of file win32_platform.h.
| #define MSGFLT_ALLOW 1 |
Definition at line 127 of file win32_platform.h.
| #define OCR_HAND 32649 |
Definition at line 117 of file win32_platform.h.
| #define OEMRESOURCE |
Definition at line 65 of file win32_platform.h.
| #define RtlVerifyVersionInfo _glfw.win32.ntdll.RtlVerifyVersionInfo_ |
Definition at line 264 of file win32_platform.h.
| #define SetProcessDPIAware _glfw.win32.user32.SetProcessDPIAware_ |
Definition at line 239 of file win32_platform.h.
| #define SetProcessDpiAwareness _glfw.win32.shcore.SetProcessDpiAwareness_ |
Definition at line 259 of file win32_platform.h.
| #define SetProcessDpiAwarenessContext _glfw.win32.user32.SetProcessDpiAwarenessContext_ |
Definition at line 242 of file win32_platform.h.
| #define timeGetTime _glfw.win32.winmm.GetTime |
Definition at line 220 of file win32_platform.h.
| #define UNICODE |
Definition at line 48 of file win32_platform.h.
| #define UNICODE_NOCHAR 0xFFFF |
Definition at line 90 of file win32_platform.h.
| #define USER_DEFAULT_SCREEN_DPI 96 |
Definition at line 114 of file win32_platform.h.
| #define VC_EXTRALEAN |
Definition at line 34 of file win32_platform.h.
| #define WIN32_LEAN_AND_MEAN |
Definition at line 38 of file win32_platform.h.
| #define WINVER 0x0501 |
Definition at line 54 of file win32_platform.h.
| #define WM_COPYGLOBALDATA 0x0049 |
Definition at line 84 of file win32_platform.h.
| #define WM_DPICHANGED 0x02E0 |
Definition at line 93 of file win32_platform.h.
| #define WM_DWMCOLORIZATIONCOLORCHANGED 0x0320 |
Definition at line 81 of file win32_platform.h.
| #define WM_DWMCOMPOSITIONCHANGED 0x031E |
Definition at line 78 of file win32_platform.h.
| #define WM_GETDPISCALEDSIZE 0x02e4 |
Definition at line 111 of file win32_platform.h.
| #define WM_MOUSEHWHEEL 0x020E |
Definition at line 75 of file win32_platform.h.
| #define WM_UNICHAR 0x0109 |
Definition at line 87 of file win32_platform.h.
| #define XINPUT_CAPS_WIRELESS 0x0002 |
Definition at line 186 of file win32_platform.h.
| #define XINPUT_DEVSUBTYPE_ARCADE_PAD 0x13 |
Definition at line 207 of file win32_platform.h.
| #define XINPUT_DEVSUBTYPE_ARCADE_STICK 0x03 |
Definition at line 192 of file win32_platform.h.
| #define XINPUT_DEVSUBTYPE_DANCE_PAD 0x05 |
Definition at line 198 of file win32_platform.h.
| #define XINPUT_DEVSUBTYPE_DRUM_KIT 0x08 |
Definition at line 204 of file win32_platform.h.
| #define XINPUT_DEVSUBTYPE_FLIGHT_STICK 0x04 |
Definition at line 195 of file win32_platform.h.
| #define XINPUT_DEVSUBTYPE_GUITAR 0x06 |
Definition at line 201 of file win32_platform.h.
| #define XINPUT_DEVSUBTYPE_WHEEL 0x02 |
Definition at line 189 of file win32_platform.h.
| #define XInputGetCapabilities _glfw.win32.xinput.GetCapabilities |
Definition at line 225 of file win32_platform.h.
| #define XInputGetState _glfw.win32.xinput.GetState |
Definition at line 226 of file win32_platform.h.
| #define XUSER_MAX_COUNT 4 |
Definition at line 210 of file win32_platform.h.
| typedef struct _GLFWcursorWin32 _GLFWcursorWin32 |
| typedef struct _GLFWlibraryWin32 _GLFWlibraryWin32 |
| typedef struct _GLFWmonitorWin32 _GLFWmonitorWin32 |
| typedef struct _GLFWmutexWin32 _GLFWmutexWin32 |
| typedef struct _GLFWtimerWin32 _GLFWtimerWin32 |
| typedef struct _GLFWtlsWin32 _GLFWtlsWin32 |
| typedef struct _GLFWwindowWin32 _GLFWwindowWin32 |
| typedef BOOL(WINAPI * PFN_AdjustWindowRectExForDpi) (LPRECT, DWORD, BOOL, DWORD, UINT) |
Definition at line 238 of file win32_platform.h.
| typedef BOOL(WINAPI * PFN_ChangeWindowMessageFilterEx) (HWND, UINT, DWORD, CHANGEFILTERSTRUCT *) |
Definition at line 234 of file win32_platform.h.
| typedef HRESULT(WINAPI * PFN_DirectInput8Create) (HINSTANCE, DWORD, REFIID, LPVOID *, LPUNKNOWN) |
Definition at line 229 of file win32_platform.h.
| typedef HRESULT(WINAPI * PFN_DwmEnableBlurBehindWindow) (HWND, const DWM_BLURBEHIND *) |
Definition at line 249 of file win32_platform.h.
| typedef HRESULT(WINAPI * PFN_DwmFlush) (VOID) |
Definition at line 248 of file win32_platform.h.
| typedef HRESULT(WINAPI * PFN_DwmGetColorizationColor) (DWORD *, BOOL *) |
Definition at line 250 of file win32_platform.h.
| typedef HRESULT(WINAPI * PFN_DwmIsCompositionEnabled) (BOOL *) |
Definition at line 247 of file win32_platform.h.
| typedef BOOL(WINAPI * PFN_EnableNonClientDpiScaling) (HWND) |
Definition at line 235 of file win32_platform.h.
| typedef HRESULT(WINAPI * PFN_GetDpiForMonitor) (HMONITOR, MONITOR_DPI_TYPE, UINT *, UINT *) |
Definition at line 258 of file win32_platform.h.
| typedef UINT(WINAPI * PFN_GetDpiForWindow) (HWND) |
Definition at line 237 of file win32_platform.h.
| typedef LONG(WINAPI * PFN_RtlVerifyVersionInfo) (OSVERSIONINFOEXW *, ULONG, ULONGLONG) |
Definition at line 263 of file win32_platform.h.
| typedef BOOL(WINAPI * PFN_SetProcessDPIAware) (void) |
Definition at line 233 of file win32_platform.h.
| typedef HRESULT(WINAPI * PFN_SetProcessDpiAwareness) (PROCESS_DPI_AWARENESS) |
Definition at line 257 of file win32_platform.h.
| typedef BOOL(WINAPI * PFN_SetProcessDpiAwarenessContext) (HANDLE) |
Definition at line 236 of file win32_platform.h.
| typedef DWORD(WINAPI * PFN_timeGetTime) (void) |
Definition at line 219 of file win32_platform.h.
| typedef VkResult(APIENTRY * PFN_vkCreateWin32SurfaceKHR) (VkInstance, const VkWin32SurfaceCreateInfoKHR *, const VkAllocationCallbacks *, VkSurfaceKHR *) |
Definition at line 277 of file win32_platform.h.
| typedef VkBool32(APIENTRY * PFN_vkGetPhysicalDeviceWin32PresentationSupportKHR) (VkPhysicalDevice, uint32_t) |
Definition at line 278 of file win32_platform.h.
| typedef DWORD(WINAPI * PFN_XInputGetCapabilities) (DWORD, DWORD, XINPUT_CAPABILITIES *) |
Definition at line 223 of file win32_platform.h.
| typedef DWORD(WINAPI * PFN_XInputGetState) (DWORD, XINPUT_STATE *) |
Definition at line 224 of file win32_platform.h.
| typedef VkFlags VkWin32SurfaceCreateFlagsKHR |
Definition at line 266 of file win32_platform.h.
| typedef struct VkWin32SurfaceCreateInfoKHR VkWin32SurfaceCreateInfoKHR |
| enum MONITOR_DPI_TYPE |
| Enumerator | |
|---|---|
| MDT_EFFECTIVE_DPI | |
| MDT_ANGULAR_DPI | |
| MDT_RAW_DPI | |
| MDT_DEFAULT | |
Definition at line 152 of file win32_platform.h.
| Enumerator | |
|---|---|
| PROCESS_DPI_UNAWARE | |
| PROCESS_SYSTEM_DPI_AWARE | |
| PROCESS_PER_MONITOR_DPI_AWARE | |
Definition at line 146 of file win32_platform.h.
| char * _glfwCreateUTF8FromWideStringWin32 | ( | const WCHAR * | source | ) |
Definition at line 423 of file win32_init.c.
Here is the call graph for this function:
Here is the caller graph for this function:| WCHAR * _glfwCreateWideStringFromUTF8Win32 | ( | const char * | source | ) |
Definition at line 395 of file win32_init.c.
Here is the call graph for this function:
Here is the caller graph for this function:| void _glfwGetMonitorContentScaleWin32 | ( | HMONITOR | handle, |
| float * | xscale, | ||
| float * | yscale | ||
| ) |
| void _glfwInitTimerWin32 | ( | void | ) |
| void _glfwInputErrorWin32 | ( | int | error, |
| const char * | description | ||
| ) |
Definition at line 451 of file win32_init.c.
Here is the call graph for this function:
Here is the caller graph for this function:| BOOL _glfwIsWindows10BuildOrGreaterWin32 | ( | WORD | build | ) |
Definition at line 541 of file win32_init.c.
| BOOL _glfwIsWindowsVersionOrGreaterWin32 | ( | WORD | major, |
| WORD | minor, | ||
| WORD | sp | ||
| ) |
Definition at line 526 of file win32_init.c.
| void _glfwPollMonitorsWin32 | ( | void | ) |
Definition at line 137 of file win32_monitor.c.
Here is the call graph for this function:
Here is the caller graph for this function:| GLFWbool _glfwRegisterWindowClassWin32 | ( | void | ) |
Definition at line 1350 of file win32_window.c.
Here is the call graph for this function:
Here is the caller graph for this function:| void _glfwRestoreVideoModeWin32 | ( | _GLFWmonitor * | monitor | ) |
Definition at line 307 of file win32_monitor.c.
| void _glfwSetVideoModeWin32 | ( | _GLFWmonitor * | monitor, |
| const GLFWvidmode * | desired | ||
| ) |
| void _glfwUnregisterWindowClassWin32 | ( | void | ) |
| void _glfwUpdateKeyNamesWin32 | ( | void | ) |