Camilla Löwy
62074f3dea
Update glad2 and switch to header-only version
...
This updates to a newer version of glad2 and switches to the header-only
variant.
This also (finally) switches to the newer glad2 loader signature that
allows us to pass in glfwGetInstanceProcAddress directly.
ago%!(EXTRA string=4 years)
Camilla Löwy
22b586b3d8
Add pluggable heap allocator
...
This adds the glfwInitAllocator function for specifying a custom memory
allocator to use instead of the C runtime library.
The allocator is a struct of type GLFWallocator with fields
corresponding to malloc, realloc and free, while the internal API
corresponds to calloc, realloc and free.
Heap allocation calls are filtered before reaching the user-provided
functions, so deallocation of NULL and allocations of zero bytes are not
passed on, reallocating NULL is transformed into an allocation and
reallocating to size zero is transformed into deallocation.
The clearing of a new block to zero is performed by the internal
calloc-like function.
Closes #544 .
Fixes #1628 .
Closes #1947 .
ago%!(EXTRA string=4 years)
Camilla Löwy
061a0263a9
Win32: Fix compilation with standalone LLVM
...
The /clang: suffix passed to Clang-CL was accidentally also passed to
the regular standalone Clang, which caused compilation to fail. We now
pass /W3 to Clang-CL, which it interprets as -Wall.
The _CRT_SECURE_NO_WARNINGS macro is now defined for both Clang and
Clang-CL.
The /entry: flag passed to link.exe is now also passed to lld-link,
letting the windows subsystem tests and examples link.
Fixes #1807 .
Closes #1824 .
Closes #1874 .
ago%!(EXTRA string=4 years)
Camilla Löwy
330f7da746
Add Vulkan device presentation support to glfwinfo
...
The glfwinfo tool now reports the results of
glfwGetPhysicalDevicePresentationSupport for each physical device.
ago%!(EXTRA string=4 years)
Camilla Löwy
0beadfdc66
Add window surface creation to glfwinfo
...
The glfwinfo tool now attempts Vulkan surface creation via
glfwCreateWindowSurface and reports the results.
ago%!(EXTRA string=4 years)
Camilla Löwy
f90df24244
Add GLFW_X11_XCB_VULKAN_SURFACE flag to glfwinfo
ago%!(EXTRA string=4 years)
Nicolas Caramelli
8d47dc5894
Update test SPIR-V shader code
...
Closes #1781 .
ago%!(EXTRA string=5 years)
Camilla Löwy
5c92cd9f52
Make windows test a tolerable example
ago%!(EXTRA string=5 years)
Camilla Löwy
686e18fd72
Remove window opacity test
...
It has been superceded by the window property test.
ago%!(EXTRA string=5 years)
Camilla Löwy
3207fc7120
Add window property test
ago%!(EXTRA string=5 years)
Camilla Löwy
0dea8a4441
EGL: Add support for EGL_ANGLE_platform_angle
...
This adds basic support for selecting the platform type (rendering
backend) when running on ANGLE.
Related to #1380 .
ago%!(EXTRA string=5 years)
Camilla Löwy
e6a6a99813
Use stdbool more consistently in glfwinfo
ago%!(EXTRA string=5 years)
Camilla Löwy
1cecb8beb0
Move glfwinfo argument processing before glfwInit
...
This will allow init hints to be controlled by command-line arguments.
ago%!(EXTRA string=5 years)
Camilla Löwy
b420ca7404
Add GLFW_CONTEXT_DEBUG window hint alias
...
This adds GLFW_CONTEXT_DEBUG as a preferred alias for
the GLFW_OPENGL_DEBUG_CONTEXT window hint, as debug contexts are
defined for both OpenGL and OpenGL ES.
Related to #1720 .
ago%!(EXTRA string=5 years)
Camilla Löwy
72366ac9a9
Cocoa: Finish launching NSApp in glfwInit
...
This moves the remaining bits of NSApplication initialization into
_glfwPlatformInit. As a side-effect of this, any command-line program
initializing GLFW will get a menu bar, which is not ideal.
If this has happened to you and a bisect led you here, please see the
GLFW_COCOA_MENUBAR init hint introduced in GLFW 3.3.
If this patch is a terrible idea, please get in touch in the 3.4 release
timeframe.
This is a replacement for 6e6805000a
,
which attempts to preserve the existing menu bar creation behavior for
the 3.3-stable branch.
Fixes #1649 .
ago%!(EXTRA string=5 years)
Camilla Löwy
49c5d837b4
Replace CMake threads variable with modern target
ago%!(EXTRA string=6 years)
Camilla Löwy
59055d585f
Update minimum required CMake version to 3.1
ago%!(EXTRA string=6 years)
Camilla Löwy
8a1f4940fc
Remove reference to non-existent CMake variable
ago%!(EXTRA string=6 years)
Camilla Löwy
c016b26852
Remove non-GUI binaries from GUI-only setup
ago%!(EXTRA string=6 years)
Camilla Löwy
2fb336268f
Shorten name of Info.plist template file
...
Our template file is not simply a copy of the file included in CMake and
so should not be named as if it was.
ago%!(EXTRA string=6 years)
Camilla Löwy
ce9d124243
Remove command-line options from GUI-only test
ago%!(EXTRA string=6 years)
Camilla Löwy
d74c18117d
Remove dependency on platform header paths
...
The tests and examples should not need these paths.
ago%!(EXTRA string=6 years)
Camilla Löwy
92c70b2a83
Rename CMake variable for GUI-only programs
...
Hopefully this is less ambiguous.
ago%!(EXTRA string=6 years)
Camilla Löwy
7dbdd2e6a5
Add more standard cursors
...
This adds the standard cursors for diagonal and omnidirectional
resize/move and operation-not-allowed. It also adds new (better?) names
for the horizontal and vertical resize/move and pointing hand cursors.
References:
- https://developer.apple.com/documentation/appkit/nscursor
- https://stackoverflow.com/questions/10733228/
- https://docs.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-setsystemcursor
- https://freedesktop.org/wiki/Specifications/cursor-spec/
- https://tronche.com/gui/x/xlib/appendix/b/
Related to #427 .
ago%!(EXTRA string=6 years)
Camilla Löwy
953a1c3f8b
Cleanup
ago%!(EXTRA string=6 years)
Guillaume Racicot
bc5523e994
Set C standard at 99 for all test targets
...
Related to #1593 .
ago%!(EXTRA string=6 years)
Camilla Löwy
8e288dc94c
Win32: Add GLFW_WIN32_KEYBOARD_MENU
...
This platform specific window hint enables access to the Windows window
menu via the keyboard shortcuts.
ago%!(EXTRA string=6 years)
Camilla Löwy
de23429455
Add reminder for why events test is not closing
ago%!(EXTRA string=6 years)
Camilla Löwy
08f01c31a0
Add gamepad information to events test output
ago%!(EXTRA string=6 years)
Camilla Löwy
20e522cdf4
Make events test output only UTF-8 in C locale
ago%!(EXTRA string=6 years)
Camilla Löwy
f71b55f83d
Clean up monitors tool output
ago%!(EXTRA string=6 years)
luz.paz
7105ff2dfd
Fix typos
...
Found via `codespell -q 3 -S ./deps -L fo,numer,te,uint,wille`
ago%!(EXTRA string=6 years)
Camilla Löwy
efda4afb49
Put fix in correct position
...
This fixes a mismerge by @elmindreda in
65748fb8f3
.
ago%!(EXTRA string=6 years)
Camilla Löwy
65748fb8f3
Fix Vulkan triangle test segfault on resize
...
The command buffer handle was not reset after being freed on window
resize, leading to a segfault when the stale handle was used.
ago%!(EXTRA string=6 years)
Camilla Löwy
6abad2efd2
Fix conflict with DEBUG macro defined by Bazel
...
The Bazel build system may define DEBUG when compiling on macOS, which
caused the glfwinfo test program to fail to build.
Fixes #1537 .
ago%!(EXTRA string=6 years)
Camilla Löwy
3a5e99e59a
Remove unused function in tearing test
ago%!(EXTRA string=6 years)
Camilla Löwy
d834f01ca4
Rename legacy Vulkan triangle program
...
Fixes #1477 .
ago%!(EXTRA string=6 years)
Camilla Löwy
537ea4ccf1
Explicitly disable inclusion for test and examples
...
Thank you, Travis CI, for reminding me that one cannot disable a header
with inclusion guards if it doesn't exist.
ago%!(EXTRA string=6 years)
Camilla Löwy
51bb76c7c3
Improve (?) reference documentation for callbacks
ago%!(EXTRA string=6 years)
Camilla Löwy
c415c71947
Clean up glfwinfo Vulkan version output
ago%!(EXTRA string=6 years)
Camilla Löwy
144c98bcb3
Simplify glfwinfo Vulkan enumerations
ago%!(EXTRA string=6 years)
Camilla Löwy
fa025d8f80
Convert glfwinfo to C99
ago%!(EXTRA string=6 years)
Camilla Löwy
700d1f28d8
Add Vulkan 1.1 support to glfwinfo
ago%!(EXTRA string=6 years)
Camilla Löwy
a255e7ace6
Move to the modern CMake project version option
...
This replaces the manual ad-hoc version variables we have used since
CMake 2.x (and GLFW 2.x lite).
ago%!(EXTRA string=6 years)
Camilla Löwy
d0b7f539e2
Add full screen toggling to cursor test
ago%!(EXTRA string=6 years)
Camilla Löwy
62d296992e
Add min/max corner placement to cursor test
...
Related to #1461 .
ago%!(EXTRA string=6 years)
Camilla Löwy
5f4e66b21a
Add cursor position rountrip key to cursor test
...
Related to #1461 .
ago%!(EXTRA string=6 years)
Camilla Löwy
f03614277d
Update cursor test tracking when enabling cursor
...
Related to #1461 .
ago%!(EXTRA string=6 years)
Camilla Löwy
45a62adf82
Fix cursor test tracking mode drawing
...
Related to #1461 .
ago%!(EXTRA string=6 years)
Camilla Löwy
718609275d
Add custom cursor to cursor test tracking mode
...
Related to #1461 .
ago%!(EXTRA string=6 years)