glfw3.c 3.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/GLFW/CMakeLists.txt +368 -0
- package/GLFW/cocoa_init.m +694 -0
- package/GLFW/cocoa_joystick.h +49 -0
- package/GLFW/cocoa_joystick.m +485 -0
- package/GLFW/cocoa_monitor.m +643 -0
- package/GLFW/cocoa_platform.h +302 -0
- package/GLFW/cocoa_time.c +57 -0
- package/GLFW/cocoa_time.h +35 -0
- package/GLFW/cocoa_window.m +2072 -0
- package/GLFW/context.c +765 -0
- package/GLFW/egl_context.c +911 -0
- package/GLFW/glfw.rc.in +30 -0
- package/GLFW/glfw3.c +109 -0
- package/GLFW/glfw3.h +6564 -0
- package/GLFW/glfw3native.h +663 -0
- package/GLFW/glx_context.c +719 -0
- package/GLFW/init.c +528 -0
- package/GLFW/input.c +1505 -0
- package/GLFW/internal.h +1022 -0
- package/GLFW/linux_joystick.c +436 -0
- package/GLFW/linux_joystick.h +64 -0
- package/GLFW/mappings.h +1001 -0
- package/GLFW/mappings.h.in +82 -0
- package/GLFW/monitor.c +548 -0
- package/GLFW/nsgl_context.m +384 -0
- package/GLFW/null_init.c +264 -0
- package/GLFW/null_joystick.c +56 -0
- package/GLFW/null_joystick.h +32 -0
- package/GLFW/null_monitor.c +160 -0
- package/GLFW/null_platform.h +271 -0
- package/GLFW/null_window.c +719 -0
- package/GLFW/osmesa_context.c +383 -0
- package/GLFW/platform.c +214 -0
- package/GLFW/platform.h +212 -0
- package/GLFW/posix_module.c +53 -0
- package/GLFW/posix_poll.c +83 -0
- package/GLFW/posix_poll.h +30 -0
- package/GLFW/posix_thread.c +107 -0
- package/GLFW/posix_thread.h +49 -0
- package/GLFW/posix_time.c +65 -0
- package/GLFW/posix_time.h +41 -0
- package/GLFW/vulkan.c +328 -0
- package/GLFW/wgl_context.c +798 -0
- package/GLFW/win32_init.c +731 -0
- package/GLFW/win32_joystick.c +767 -0
- package/GLFW/win32_joystick.h +51 -0
- package/GLFW/win32_module.c +51 -0
- package/GLFW/win32_monitor.c +569 -0
- package/GLFW/win32_platform.h +631 -0
- package/GLFW/win32_thread.c +100 -0
- package/GLFW/win32_thread.h +53 -0
- package/GLFW/win32_time.c +54 -0
- package/GLFW/win32_time.h +43 -0
- package/GLFW/win32_window.c +2592 -0
- package/GLFW/window.c +1172 -0
- package/GLFW/wl_init.c +1003 -0
- package/GLFW/wl_monitor.c +274 -0
- package/GLFW/wl_platform.h +691 -0
- package/GLFW/wl_window.c +3308 -0
- package/GLFW/x11_init.c +1656 -0
- package/GLFW/x11_monitor.c +641 -0
- package/GLFW/x11_platform.h +1004 -0
- package/GLFW/x11_window.c +3357 -0
- package/GLFW/xkb_unicode.c +943 -0
- package/GLFW/xkb_unicode.h +30 -0
- package/LICENSE +22 -0
- package/README.md +236 -0
- package/package.json +32 -0
package/GLFW/glfw.rc.in
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
|
|
2
|
+
#include <winver.h>
|
|
3
|
+
|
|
4
|
+
VS_VERSION_INFO VERSIONINFO
|
|
5
|
+
FILEVERSION @GLFW_VERSION_MAJOR@,@GLFW_VERSION_MINOR@,@GLFW_VERSION_PATCH@,0
|
|
6
|
+
PRODUCTVERSION @GLFW_VERSION_MAJOR@,@GLFW_VERSION_MINOR@,@GLFW_VERSION_PATCH@,0
|
|
7
|
+
FILEFLAGSMASK VS_FFI_FILEFLAGSMASK
|
|
8
|
+
FILEFLAGS 0
|
|
9
|
+
FILEOS VOS_NT_WINDOWS32
|
|
10
|
+
FILETYPE VFT_DLL
|
|
11
|
+
FILESUBTYPE 0
|
|
12
|
+
{
|
|
13
|
+
BLOCK "StringFileInfo"
|
|
14
|
+
{
|
|
15
|
+
BLOCK "040904B0"
|
|
16
|
+
{
|
|
17
|
+
VALUE "CompanyName", "GLFW"
|
|
18
|
+
VALUE "FileDescription", "GLFW @GLFW_VERSION@ DLL"
|
|
19
|
+
VALUE "FileVersion", "@GLFW_VERSION@"
|
|
20
|
+
VALUE "OriginalFilename", "glfw3.dll"
|
|
21
|
+
VALUE "ProductName", "GLFW"
|
|
22
|
+
VALUE "ProductVersion", "@GLFW_VERSION@"
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
BLOCK "VarFileInfo"
|
|
26
|
+
{
|
|
27
|
+
VALUE "Translation", 0x409, 1200
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
|
package/GLFW/glfw3.c
ADDED
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
// Core/Common files (always included)
|
|
2
|
+
#pragma once
|
|
3
|
+
|
|
4
|
+
#ifdef _GLFW_WIN32
|
|
5
|
+
#define OEMRESOURCE
|
|
6
|
+
#include <windows.h>
|
|
7
|
+
#ifndef OCR_NORMAL
|
|
8
|
+
#define OCR_NORMAL 32512
|
|
9
|
+
#define OCR_IBEAM 32513
|
|
10
|
+
#define OCR_WAIT 32514
|
|
11
|
+
#define OCR_CROSS 32515
|
|
12
|
+
#define OCR_UP 32516
|
|
13
|
+
#define OCR_SIZE 32640 /* OBSOLETE: use OCR_SIZEALL */
|
|
14
|
+
#define OCR_ICON 32641 /* OBSOLETE: use OCR_NORMAL */
|
|
15
|
+
#define OCR_SIZENWSE 32642
|
|
16
|
+
#define OCR_SIZENESW 32643
|
|
17
|
+
#define OCR_SIZEWE 32644
|
|
18
|
+
#define OCR_SIZENS 32645
|
|
19
|
+
#define OCR_SIZEALL 32646
|
|
20
|
+
#define OCR_ICOCUR 32647 /* OBSOLETE: use OIC_WINLOGO */
|
|
21
|
+
#define OCR_NO 32648
|
|
22
|
+
#endif
|
|
23
|
+
#endif
|
|
24
|
+
|
|
25
|
+
#ifdef _GLFW_WIN32
|
|
26
|
+
#pragma comment(lib, "gdi32.lib")
|
|
27
|
+
#pragma comment(lib, "user32.lib")
|
|
28
|
+
#pragma comment(lib, "shell32.lib")
|
|
29
|
+
#pragma comment(lib, "opengl32.lib")
|
|
30
|
+
#endif
|
|
31
|
+
|
|
32
|
+
#include "context.c"
|
|
33
|
+
#include "egl_context.c"
|
|
34
|
+
#include "init.c"
|
|
35
|
+
#include "input.c"
|
|
36
|
+
#include "monitor.c"
|
|
37
|
+
#include "osmesa_context.c"
|
|
38
|
+
#include "platform.c"
|
|
39
|
+
#include "vulkan.c"
|
|
40
|
+
#include "window.c"
|
|
41
|
+
|
|
42
|
+
// Null platform (for unsupported platforms)
|
|
43
|
+
#if !defined(_GLFW_WIN32) && !defined(_GLFW_COCOA) && !defined(_GLFW_X11) && !defined(_GLFW_WAYLAND)
|
|
44
|
+
#include "null_init.c"
|
|
45
|
+
#include "null_joystick.c"
|
|
46
|
+
#include "null_monitor.c"
|
|
47
|
+
#include "null_window.c"
|
|
48
|
+
#endif
|
|
49
|
+
|
|
50
|
+
// Windows platform
|
|
51
|
+
#if defined(_GLFW_WIN32)
|
|
52
|
+
#include "win32_platform.h"
|
|
53
|
+
#include "wgl_context.c"
|
|
54
|
+
#include "win32_init.c"
|
|
55
|
+
#include "win32_joystick.h"
|
|
56
|
+
#include "win32_joystick.c"
|
|
57
|
+
#include "win32_module.c"
|
|
58
|
+
#include "win32_monitor.c"
|
|
59
|
+
#include "win32_thread.h"
|
|
60
|
+
#include "win32_thread.c"
|
|
61
|
+
#include "win32_time.h"
|
|
62
|
+
#include "win32_time.c"
|
|
63
|
+
#include "win32_window.c"
|
|
64
|
+
#endif
|
|
65
|
+
|
|
66
|
+
// macOS platform
|
|
67
|
+
#if defined(_GLFW_COCOA)
|
|
68
|
+
#include "cocoa_init.m"
|
|
69
|
+
#include "cocoa_joystick.m"
|
|
70
|
+
#include "cocoa_monitor.m"
|
|
71
|
+
#include "cocoa_time.c"
|
|
72
|
+
#include "cocoa_window.m"
|
|
73
|
+
#include "nsgl_context.m"
|
|
74
|
+
#endif
|
|
75
|
+
|
|
76
|
+
// X11 platform
|
|
77
|
+
#if defined(_GLFW_X11)
|
|
78
|
+
#include "glx_context.c"
|
|
79
|
+
#include "linux_joystick.c"
|
|
80
|
+
#include "x11_init.c"
|
|
81
|
+
#include "x11_monitor.c"
|
|
82
|
+
#include "x11_window.c"
|
|
83
|
+
#include "xkb_unicode.c"
|
|
84
|
+
#endif
|
|
85
|
+
|
|
86
|
+
// Wayland platform
|
|
87
|
+
#if defined(_GLFW_WAYLAND)
|
|
88
|
+
#include "linux_joystick.c"
|
|
89
|
+
#include "wl_init.c"
|
|
90
|
+
#include "wl_monitor.c"
|
|
91
|
+
#include "wl_window.c"
|
|
92
|
+
#include "xkb_unicode.c"
|
|
93
|
+
#endif
|
|
94
|
+
|
|
95
|
+
// POSIX threading (used on non-Windows platforms)
|
|
96
|
+
#if !defined(_WIN32)
|
|
97
|
+
#include "posix_module.c"
|
|
98
|
+
#include "posix_thread.c"
|
|
99
|
+
#endif
|
|
100
|
+
|
|
101
|
+
// POSIX time (used on POSIX platforms that aren't macOS)
|
|
102
|
+
#if !defined(_WIN32) && !defined(__APPLE__)
|
|
103
|
+
#include "posix_time.c"
|
|
104
|
+
#endif
|
|
105
|
+
|
|
106
|
+
// POSIX poll (used on Wayland and X11)
|
|
107
|
+
#if defined(_GLFW_WAYLAND) || defined(_GLFW_X11)
|
|
108
|
+
#include "posix_poll.c"
|
|
109
|
+
#endif
|