2010-09-07 15:34:51 +00:00
|
|
|
//========================================================================
|
2016-08-18 21:42:15 +00:00
|
|
|
// GLFW 3.3 Win32 - www.glfw.org
|
2010-09-07 15:34:51 +00:00
|
|
|
//------------------------------------------------------------------------
|
|
|
|
// Copyright (c) 2002-2006 Marcus Geelnard
|
2016-06-01 14:17:06 +00:00
|
|
|
// Copyright (c) 2006-2016 Camilla Berglund <elmindreda@glfw.org>
|
2010-09-07 15:34:51 +00:00
|
|
|
//
|
|
|
|
// This software is provided 'as-is', without any express or implied
|
|
|
|
// warranty. In no event will the authors be held liable for any damages
|
|
|
|
// arising from the use of this software.
|
|
|
|
//
|
|
|
|
// Permission is granted to anyone to use this software for any purpose,
|
|
|
|
// including commercial applications, and to alter it and redistribute it
|
|
|
|
// freely, subject to the following restrictions:
|
|
|
|
//
|
|
|
|
// 1. The origin of this software must not be misrepresented; you must not
|
|
|
|
// claim that you wrote the original software. If you use this software
|
|
|
|
// in a product, an acknowledgment in the product documentation would
|
|
|
|
// be appreciated but is not required.
|
|
|
|
//
|
|
|
|
// 2. Altered source versions must be plainly marked as such, and must not
|
|
|
|
// be misrepresented as being the original software.
|
|
|
|
//
|
|
|
|
// 3. This notice may not be removed or altered from any source
|
|
|
|
// distribution.
|
|
|
|
//
|
|
|
|
//========================================================================
|
|
|
|
|
2015-06-07 17:32:24 +00:00
|
|
|
#ifndef _glfw3_win32_platform_h_
|
|
|
|
#define _glfw3_win32_platform_h_
|
2010-09-07 15:34:51 +00:00
|
|
|
|
|
|
|
// We don't need all the fancy stuff
|
2012-03-29 21:41:05 +00:00
|
|
|
#ifndef NOMINMAX
|
|
|
|
#define NOMINMAX
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef VC_EXTRALEAN
|
|
|
|
#define VC_EXTRALEAN
|
|
|
|
#endif
|
2010-09-07 15:34:51 +00:00
|
|
|
|
2011-07-27 15:09:17 +00:00
|
|
|
#ifndef WIN32_LEAN_AND_MEAN
|
|
|
|
#define WIN32_LEAN_AND_MEAN
|
|
|
|
#endif
|
|
|
|
|
2014-08-20 15:49:58 +00:00
|
|
|
// This is a workaround for the fact that glfw3.h needs to export APIENTRY (for
|
|
|
|
// example to allow applications to correctly declare a GL_ARB_debug_output
|
|
|
|
// callback) but windows.h assumes no one will define APIENTRY before it does
|
2012-01-18 17:44:28 +00:00
|
|
|
#undef APIENTRY
|
|
|
|
|
2012-02-05 01:41:52 +00:00
|
|
|
// GLFW on Windows is Unicode only and does not work in MBCS mode
|
|
|
|
#ifndef UNICODE
|
|
|
|
#define UNICODE
|
|
|
|
#endif
|
|
|
|
|
2013-09-03 11:38:16 +00:00
|
|
|
// GLFW requires Windows XP or later
|
2013-09-13 10:27:43 +00:00
|
|
|
#if WINVER < 0x0501
|
|
|
|
#undef WINVER
|
2012-03-29 23:55:28 +00:00
|
|
|
#define WINVER 0x0501
|
2012-03-22 13:58:14 +00:00
|
|
|
#endif
|
2013-09-13 10:27:43 +00:00
|
|
|
#if _WIN32_WINNT < 0x0501
|
|
|
|
#undef _WIN32_WINNT
|
2013-09-03 11:38:16 +00:00
|
|
|
#define _WIN32_WINNT 0x0501
|
|
|
|
#endif
|
2012-02-03 19:34:24 +00:00
|
|
|
|
2016-02-16 22:06:29 +00:00
|
|
|
// GLFW uses DirectInput8 interfaces
|
|
|
|
#define DIRECTINPUT_VERSION 0x0800
|
|
|
|
|
2016-03-31 12:22:54 +00:00
|
|
|
#include <wctype.h>
|
2014-03-31 20:33:22 +00:00
|
|
|
#include <windows.h>
|
|
|
|
#include <mmsystem.h>
|
2016-02-16 22:06:29 +00:00
|
|
|
#include <dinput.h>
|
2014-08-15 13:08:09 +00:00
|
|
|
#include <xinput.h>
|
2014-03-31 20:33:22 +00:00
|
|
|
#include <dbt.h>
|
|
|
|
|
2014-03-06 20:05:55 +00:00
|
|
|
#if defined(_MSC_VER)
|
|
|
|
#include <malloc.h>
|
|
|
|
#define strdup _strdup
|
|
|
|
#endif
|
|
|
|
|
2016-02-16 22:06:29 +00:00
|
|
|
// HACK: Define macros that some windows.h variants don't
|
2010-09-27 00:32:41 +00:00
|
|
|
#ifndef WM_MOUSEHWHEEL
|
2012-02-05 01:43:49 +00:00
|
|
|
#define WM_MOUSEHWHEEL 0x020E
|
2010-09-07 15:34:51 +00:00
|
|
|
#endif
|
2013-03-11 19:54:32 +00:00
|
|
|
#ifndef WM_DWMCOMPOSITIONCHANGED
|
|
|
|
#define WM_DWMCOMPOSITIONCHANGED 0x031E
|
|
|
|
#endif
|
2014-02-10 14:03:23 +00:00
|
|
|
#ifndef WM_COPYGLOBALDATA
|
|
|
|
#define WM_COPYGLOBALDATA 0x0049
|
|
|
|
#endif
|
2014-03-06 22:33:09 +00:00
|
|
|
#ifndef WM_UNICHAR
|
|
|
|
#define WM_UNICHAR 0x0109
|
|
|
|
#endif
|
|
|
|
#ifndef UNICODE_NOCHAR
|
|
|
|
#define UNICODE_NOCHAR 0xFFFF
|
|
|
|
#endif
|
2015-11-01 16:29:13 +00:00
|
|
|
#ifndef WM_DPICHANGED
|
|
|
|
#define WM_DPICHANGED 0x02E0
|
|
|
|
#endif
|
2015-11-10 12:42:56 +00:00
|
|
|
#ifndef GET_XBUTTON_WPARAM
|
|
|
|
#define GET_XBUTTON_WPARAM(w) (HIWORD(w))
|
|
|
|
#endif
|
2016-02-18 12:34:21 +00:00
|
|
|
#ifndef EDS_ROTATEDMODE
|
|
|
|
#define EDS_ROTATEDMODE 0x00000004
|
|
|
|
#endif
|
|
|
|
#ifndef DISPLAY_DEVICE_ACTIVE
|
|
|
|
#define DISPLAY_DEVICE_ACTIVE 0x00000001
|
|
|
|
#endif
|
2014-02-10 14:03:23 +00:00
|
|
|
|
2014-02-10 20:12:20 +00:00
|
|
|
#if WINVER < 0x0601
|
2014-02-10 14:03:23 +00:00
|
|
|
typedef struct tagCHANGEFILTERSTRUCT
|
|
|
|
{
|
|
|
|
DWORD cbSize;
|
|
|
|
DWORD ExtStatus;
|
2014-02-10 20:12:20 +00:00
|
|
|
|
2014-02-10 14:03:23 +00:00
|
|
|
} CHANGEFILTERSTRUCT, *PCHANGEFILTERSTRUCT;
|
2014-02-10 20:12:20 +00:00
|
|
|
#ifndef MSGFLT_ALLOW
|
|
|
|
#define MSGFLT_ALLOW 1
|
|
|
|
#endif
|
|
|
|
#endif /*Windows 7*/
|
2010-09-07 15:34:51 +00:00
|
|
|
|
2015-11-01 16:29:13 +00:00
|
|
|
#ifndef DPI_ENUMS_DECLARED
|
|
|
|
typedef enum PROCESS_DPI_AWARENESS
|
|
|
|
{
|
|
|
|
PROCESS_DPI_UNAWARE = 0,
|
|
|
|
PROCESS_SYSTEM_DPI_AWARE = 1,
|
|
|
|
PROCESS_PER_MONITOR_DPI_AWARE = 2
|
|
|
|
} PROCESS_DPI_AWARENESS;
|
|
|
|
#endif /*DPI_ENUMS_DECLARED*/
|
|
|
|
|
2016-02-16 22:06:29 +00:00
|
|
|
// HACK: Define macros that some xinput.h variants don't
|
2014-08-15 13:08:09 +00:00
|
|
|
#ifndef XINPUT_CAPS_WIRELESS
|
|
|
|
#define XINPUT_CAPS_WIRELESS 0x0002
|
|
|
|
#endif
|
|
|
|
#ifndef XINPUT_DEVSUBTYPE_WHEEL
|
|
|
|
#define XINPUT_DEVSUBTYPE_WHEEL 0x02
|
|
|
|
#endif
|
|
|
|
#ifndef XINPUT_DEVSUBTYPE_ARCADE_STICK
|
|
|
|
#define XINPUT_DEVSUBTYPE_ARCADE_STICK 0x03
|
|
|
|
#endif
|
|
|
|
#ifndef XINPUT_DEVSUBTYPE_FLIGHT_STICK
|
|
|
|
#define XINPUT_DEVSUBTYPE_FLIGHT_STICK 0x04
|
|
|
|
#endif
|
|
|
|
#ifndef XINPUT_DEVSUBTYPE_DANCE_PAD
|
|
|
|
#define XINPUT_DEVSUBTYPE_DANCE_PAD 0x05
|
|
|
|
#endif
|
|
|
|
#ifndef XINPUT_DEVSUBTYPE_GUITAR
|
|
|
|
#define XINPUT_DEVSUBTYPE_GUITAR 0x06
|
|
|
|
#endif
|
|
|
|
#ifndef XINPUT_DEVSUBTYPE_DRUM_KIT
|
|
|
|
#define XINPUT_DEVSUBTYPE_DRUM_KIT 0x08
|
|
|
|
#endif
|
|
|
|
#ifndef XINPUT_DEVSUBTYPE_ARCADE_PAD
|
|
|
|
#define XINPUT_DEVSUBTYPE_ARCADE_PAD 0x13
|
|
|
|
#endif
|
2016-03-31 11:07:06 +00:00
|
|
|
#ifndef XUSER_MAX_COUNT
|
|
|
|
#define XUSER_MAX_COUNT 4
|
|
|
|
#endif
|
2014-08-15 13:08:09 +00:00
|
|
|
|
2016-02-16 22:06:29 +00:00
|
|
|
// HACK: Define macros that some dinput.h variants don't
|
|
|
|
#ifndef DIDFT_OPTIONAL
|
|
|
|
#define DIDFT_OPTIONAL 0x80000000
|
|
|
|
#endif
|
|
|
|
|
2010-09-07 15:34:51 +00:00
|
|
|
// winmm.dll function pointer typedefs
|
2014-08-15 12:50:41 +00:00
|
|
|
typedef DWORD (WINAPI * TIMEGETTIME_T)(void);
|
|
|
|
#define _glfw_timeGetTime _glfw.win32.winmm.timeGetTime
|
2010-09-07 15:34:51 +00:00
|
|
|
|
2014-08-15 13:08:09 +00:00
|
|
|
// xinput.dll function pointer typedefs
|
|
|
|
typedef DWORD (WINAPI * XINPUTGETCAPABILITIES_T)(DWORD,DWORD,XINPUT_CAPABILITIES*);
|
|
|
|
typedef DWORD (WINAPI * XINPUTGETSTATE_T)(DWORD,XINPUT_STATE*);
|
|
|
|
#define _glfw_XInputGetCapabilities _glfw.win32.xinput.XInputGetCapabilities
|
|
|
|
#define _glfw_XInputGetState _glfw.win32.xinput.XInputGetState
|
|
|
|
|
2016-02-16 22:06:29 +00:00
|
|
|
// dinput8.dll function pointer typedefs
|
|
|
|
typedef HRESULT (WINAPI * DIRECTINPUT8CREATE_T)(HINSTANCE,DWORD,REFIID,LPVOID*,LPUNKNOWN);
|
|
|
|
#define _glfw_DirectInput8Create _glfw.win32.dinput8.DirectInput8Create
|
|
|
|
|
2013-03-10 18:23:42 +00:00
|
|
|
// user32.dll function pointer typedefs
|
|
|
|
typedef BOOL (WINAPI * SETPROCESSDPIAWARE_T)(void);
|
2014-02-10 14:03:23 +00:00
|
|
|
typedef BOOL (WINAPI * CHANGEWINDOWMESSAGEFILTEREX_T)(HWND,UINT,DWORD,PCHANGEFILTERSTRUCT);
|
2013-03-10 18:23:42 +00:00
|
|
|
#define _glfw_SetProcessDPIAware _glfw.win32.user32.SetProcessDPIAware
|
2014-02-10 14:03:23 +00:00
|
|
|
#define _glfw_ChangeWindowMessageFilterEx _glfw.win32.user32.ChangeWindowMessageFilterEx
|
2013-03-10 18:23:42 +00:00
|
|
|
|
2013-03-11 19:54:32 +00:00
|
|
|
// dwmapi.dll function pointer typedefs
|
|
|
|
typedef HRESULT (WINAPI * DWMISCOMPOSITIONENABLED_T)(BOOL*);
|
2015-05-21 12:48:11 +00:00
|
|
|
typedef HRESULT (WINAPI * DWMFLUSH_T)(VOID);
|
2013-03-11 19:54:32 +00:00
|
|
|
#define _glfw_DwmIsCompositionEnabled _glfw.win32.dwmapi.DwmIsCompositionEnabled
|
2015-05-21 12:48:11 +00:00
|
|
|
#define _glfw_DwmFlush _glfw.win32.dwmapi.DwmFlush
|
2013-03-11 19:54:32 +00:00
|
|
|
|
2015-11-01 16:29:13 +00:00
|
|
|
// shcore.dll function pointer typedefs
|
|
|
|
typedef HRESULT (WINAPI * SETPROCESSDPIAWARENESS_T)(PROCESS_DPI_AWARENESS);
|
2015-12-30 14:20:40 +00:00
|
|
|
#define _glfw_SetProcessDpiAwareness _glfw.win32.shcore.SetProcessDpiAwareness
|
2015-11-01 16:29:13 +00:00
|
|
|
|
2015-08-10 18:19:04 +00:00
|
|
|
typedef VkFlags VkWin32SurfaceCreateFlagsKHR;
|
|
|
|
|
|
|
|
typedef struct VkWin32SurfaceCreateInfoKHR
|
|
|
|
{
|
|
|
|
VkStructureType sType;
|
|
|
|
const void* pNext;
|
|
|
|
VkWin32SurfaceCreateFlagsKHR flags;
|
|
|
|
HINSTANCE hinstance;
|
|
|
|
HWND hwnd;
|
|
|
|
} VkWin32SurfaceCreateInfoKHR;
|
|
|
|
|
|
|
|
typedef VkResult (APIENTRY *PFN_vkCreateWin32SurfaceKHR)(VkInstance,const VkWin32SurfaceCreateInfoKHR*,const VkAllocationCallbacks*,VkSurfaceKHR*);
|
|
|
|
typedef VkBool32 (APIENTRY *PFN_vkGetPhysicalDeviceWin32PresentationSupportKHR)(VkPhysicalDevice,uint32_t);
|
|
|
|
|
2015-12-06 14:53:10 +00:00
|
|
|
#include "win32_joystick.h"
|
2016-03-28 11:19:31 +00:00
|
|
|
#include "wgl_context.h"
|
|
|
|
#include "egl_context.h"
|
2010-09-10 20:26:17 +00:00
|
|
|
|
2015-11-03 14:28:56 +00:00
|
|
|
#define _GLFW_WNDCLASSNAME L"GLFW30"
|
|
|
|
|
2015-08-10 18:19:04 +00:00
|
|
|
#define _glfw_dlopen(name) LoadLibraryA(name)
|
|
|
|
#define _glfw_dlclose(handle) FreeLibrary((HMODULE) handle)
|
|
|
|
#define _glfw_dlsym(handle, name) GetProcAddress((HMODULE) handle, name)
|
|
|
|
|
2016-03-28 11:19:31 +00:00
|
|
|
#define _GLFW_EGL_NATIVE_WINDOW ((EGLNativeWindowType) window->win32.handle)
|
|
|
|
#define _GLFW_EGL_NATIVE_DISPLAY EGL_DEFAULT_DISPLAY
|
|
|
|
|
2013-01-02 00:40:42 +00:00
|
|
|
#define _GLFW_PLATFORM_WINDOW_STATE _GLFWwindowWin32 win32
|
|
|
|
#define _GLFW_PLATFORM_LIBRARY_WINDOW_STATE _GLFWlibraryWin32 win32
|
2014-03-27 16:19:22 +00:00
|
|
|
#define _GLFW_PLATFORM_LIBRARY_TIME_STATE _GLFWtimeWin32 win32_time
|
2015-12-03 17:16:46 +00:00
|
|
|
#define _GLFW_PLATFORM_LIBRARY_TLS_STATE _GLFWtlsWin32 win32_tls
|
2013-01-02 00:40:42 +00:00
|
|
|
#define _GLFW_PLATFORM_MONITOR_STATE _GLFWmonitorWin32 win32
|
2013-12-04 13:19:22 +00:00
|
|
|
#define _GLFW_PLATFORM_CURSOR_STATE _GLFWcursorWin32 win32
|
2010-09-10 20:26:17 +00:00
|
|
|
|
|
|
|
|
2014-09-02 17:42:43 +00:00
|
|
|
// Win32-specific per-window data
|
|
|
|
//
|
2010-09-10 20:26:17 +00:00
|
|
|
typedef struct _GLFWwindowWin32
|
|
|
|
{
|
2014-09-02 17:42:43 +00:00
|
|
|
HWND handle;
|
2016-03-07 13:55:30 +00:00
|
|
|
HICON bigIcon;
|
|
|
|
HICON smallIcon;
|
2010-09-07 15:34:51 +00:00
|
|
|
|
2015-08-23 17:30:04 +00:00
|
|
|
GLFWbool cursorTracked;
|
|
|
|
GLFWbool iconified;
|
2016-06-16 11:09:28 +00:00
|
|
|
GLFWbool maximized;
|
2014-02-11 17:24:01 +00:00
|
|
|
|
|
|
|
// The last received cursor position, regardless of source
|
2016-05-24 10:23:58 +00:00
|
|
|
int lastCursorPosX, lastCursorPosY;
|
2014-09-02 17:42:43 +00:00
|
|
|
|
2010-09-10 20:26:17 +00:00
|
|
|
} _GLFWwindowWin32;
|
2010-09-07 15:34:51 +00:00
|
|
|
|
2014-09-02 17:42:43 +00:00
|
|
|
// Win32-specific global data
|
|
|
|
//
|
2010-09-10 20:26:17 +00:00
|
|
|
typedef struct _GLFWlibraryWin32
|
|
|
|
{
|
2016-05-30 19:19:00 +00:00
|
|
|
HWND helperWindowHandle;
|
2013-01-02 15:48:02 +00:00
|
|
|
DWORD foregroundLockTimeout;
|
|
|
|
char* clipboardString;
|
2015-07-02 12:24:50 +00:00
|
|
|
char keyName[64];
|
2016-09-07 13:43:39 +00:00
|
|
|
short int keycodes[512];
|
|
|
|
short int scancodes[GLFW_KEY_LAST + 1];
|
2016-05-25 12:06:02 +00:00
|
|
|
// Where to place the cursor when re-enabled
|
|
|
|
double restoreCursorPosX, restoreCursorPosY;
|
2016-05-30 19:21:09 +00:00
|
|
|
// The window whose disabled cursor mode is active
|
|
|
|
_GLFWwindow* disabledCursorWindow;
|
2010-09-10 20:26:17 +00:00
|
|
|
|
2010-09-14 02:27:02 +00:00
|
|
|
struct {
|
2013-01-02 15:48:02 +00:00
|
|
|
HINSTANCE instance;
|
|
|
|
TIMEGETTIME_T timeGetTime;
|
2010-09-14 02:27:02 +00:00
|
|
|
} winmm;
|
2010-09-07 15:34:51 +00:00
|
|
|
|
2016-02-16 22:06:29 +00:00
|
|
|
struct {
|
|
|
|
HINSTANCE instance;
|
|
|
|
DIRECTINPUT8CREATE_T DirectInput8Create;
|
|
|
|
IDirectInput8W* api;
|
|
|
|
} dinput8;
|
|
|
|
|
2013-03-10 18:23:42 +00:00
|
|
|
struct {
|
2014-08-15 13:08:09 +00:00
|
|
|
HINSTANCE instance;
|
|
|
|
XINPUTGETCAPABILITIES_T XInputGetCapabilities;
|
|
|
|
XINPUTGETSTATE_T XInputGetState;
|
|
|
|
} xinput;
|
|
|
|
|
|
|
|
struct {
|
|
|
|
HINSTANCE instance;
|
|
|
|
SETPROCESSDPIAWARE_T SetProcessDPIAware;
|
2014-02-10 14:03:23 +00:00
|
|
|
CHANGEWINDOWMESSAGEFILTEREX_T ChangeWindowMessageFilterEx;
|
2013-03-10 18:23:42 +00:00
|
|
|
} user32;
|
|
|
|
|
2013-03-11 19:54:32 +00:00
|
|
|
struct {
|
|
|
|
HINSTANCE instance;
|
|
|
|
DWMISCOMPOSITIONENABLED_T DwmIsCompositionEnabled;
|
2015-05-21 12:48:11 +00:00
|
|
|
DWMFLUSH_T DwmFlush;
|
2013-03-11 19:54:32 +00:00
|
|
|
} dwmapi;
|
|
|
|
|
2015-11-01 16:29:13 +00:00
|
|
|
struct {
|
|
|
|
HINSTANCE instance;
|
2015-12-30 14:20:40 +00:00
|
|
|
SETPROCESSDPIAWARENESS_T SetProcessDpiAwareness;
|
2015-11-01 16:29:13 +00:00
|
|
|
} shcore;
|
|
|
|
|
2010-09-10 20:26:17 +00:00
|
|
|
} _GLFWlibraryWin32;
|
2010-09-07 15:34:51 +00:00
|
|
|
|
2014-09-02 17:42:43 +00:00
|
|
|
// Win32-specific per-monitor data
|
|
|
|
//
|
2011-10-03 07:24:35 +00:00
|
|
|
typedef struct _GLFWmonitorWin32
|
2011-10-02 20:13:47 +00:00
|
|
|
{
|
2013-02-20 14:44:37 +00:00
|
|
|
// This size matches the static size of DISPLAY_DEVICE.DeviceName
|
2014-09-12 15:00:05 +00:00
|
|
|
WCHAR adapterName[32];
|
|
|
|
WCHAR displayName[32];
|
2014-10-28 14:35:03 +00:00
|
|
|
char publicAdapterName[64];
|
|
|
|
char publicDisplayName[64];
|
2015-08-23 17:30:04 +00:00
|
|
|
GLFWbool modesPruned;
|
|
|
|
GLFWbool modeChanged;
|
2011-10-06 21:28:56 +00:00
|
|
|
|
2011-10-03 07:24:35 +00:00
|
|
|
} _GLFWmonitorWin32;
|
2010-09-07 15:34:51 +00:00
|
|
|
|
2014-09-02 17:42:43 +00:00
|
|
|
// Win32-specific per-cursor data
|
|
|
|
//
|
2013-12-04 13:19:22 +00:00
|
|
|
typedef struct _GLFWcursorWin32
|
|
|
|
{
|
|
|
|
HCURSOR handle;
|
2014-09-02 17:42:43 +00:00
|
|
|
|
2013-12-04 13:19:22 +00:00
|
|
|
} _GLFWcursorWin32;
|
|
|
|
|
2014-09-02 17:42:43 +00:00
|
|
|
// Win32-specific global timer data
|
|
|
|
//
|
2014-03-27 16:19:22 +00:00
|
|
|
typedef struct _GLFWtimeWin32
|
|
|
|
{
|
2015-08-23 17:30:04 +00:00
|
|
|
GLFWbool hasPC;
|
2016-03-23 09:09:07 +00:00
|
|
|
uint64_t frequency;
|
2014-03-27 16:19:22 +00:00
|
|
|
|
|
|
|
} _GLFWtimeWin32;
|
|
|
|
|
2015-12-03 17:16:46 +00:00
|
|
|
// Win32-specific global TLS data
|
|
|
|
//
|
|
|
|
typedef struct _GLFWtlsWin32
|
|
|
|
{
|
|
|
|
GLFWbool allocated;
|
|
|
|
DWORD context;
|
|
|
|
|
|
|
|
} _GLFWtlsWin32;
|
|
|
|
|
|
|
|
|
|
|
|
GLFWbool _glfwRegisterWindowClassWin32(void);
|
|
|
|
void _glfwUnregisterWindowClassWin32(void);
|
|
|
|
|
|
|
|
GLFWbool _glfwInitThreadLocalStorageWin32(void);
|
|
|
|
void _glfwTerminateThreadLocalStorageWin32(void);
|
2014-08-31 12:17:31 +00:00
|
|
|
|
2015-12-03 17:16:46 +00:00
|
|
|
WCHAR* _glfwCreateWideStringFromUTF8Win32(const char* source);
|
|
|
|
char* _glfwCreateUTF8FromWideStringWin32(const WCHAR* source);
|
2012-02-05 01:07:50 +00:00
|
|
|
|
2015-12-03 17:16:46 +00:00
|
|
|
void _glfwInitTimerWin32(void);
|
2010-09-07 15:34:51 +00:00
|
|
|
|
2015-12-03 17:16:46 +00:00
|
|
|
GLFWbool _glfwSetVideoModeWin32(_GLFWmonitor* monitor, const GLFWvidmode* desired);
|
|
|
|
void _glfwRestoreVideoModeWin32(_GLFWmonitor* monitor);
|
2010-09-07 15:34:51 +00:00
|
|
|
|
2015-06-07 17:32:24 +00:00
|
|
|
#endif // _glfw3_win32_platform_h_
|