Ozkan Sezer
51570d9257
build system: disable 3dNow! support by default
...
Closes: https://github.com/libsdl-org/SDL/issues/11472 .
2024-11-17 17:55:32 +03:00
Sam Lantinga
f1a3a18c1e
Removed SDL_HINT_ENABLE_STEAM_CONTROLLERS
...
This was only respected on Steam Link hardware, which now uses SDL3 where it has been replaced by SDL_HINT_JOYSTICK_HIDAPI_STEAM.
2024-11-08 15:23:31 -08:00
Zack Middleton
761ea32b74
Fix SDL_PRIs64 to use standard PRId64
...
PRIs64 doesn't exist in C standards.
(cherry picked from commit 8a2cac7aaa )
2024-11-08 12:40:50 +03:00
Ryan C. Gordon
67b537cef4
.wikiheader-options: Treat SDL int types (Uint64, etc) as API prefixes.
...
This makes any reference to them in the docs link to their wiki pages.
Also fixup the integer type documentation, so the SDL2 wiki _has_ actual
pages for them. :)
2024-11-01 23:52:03 -04:00
SDL Wiki Bot
15bc3f25ee
Sync SDL2 wiki -> header
...
[ci skip]
2024-11-01 19:42:53 +00:00
dv-senna
478dff3585
SDL_vulkan.h: undefine VK_DEFINE_HANDLER and VK_DEFINE_NON_DISPATCHABLE_HANDLE
...
Allows including vulkan.hpp in user code in C++ before SDL_vulkan.h w/o errors.
Fixes: https://github.com/libsdl-org/SDL/issues/11328 .
(cherry picked from commit 149ecffd6f )
2024-10-29 20:35:10 +03:00
SDL Wiki Bot
96e7306a7a
Sync SDL2 wiki -> header
...
[ci skip]
2024-10-27 21:41:54 +00:00
Jordan Christiansen
a22baafcf4
docs: Explain events for already plugged in controllers
2024-10-27 14:41:06 -07:00
SDL Wiki Bot
bcf1397e33
Sync SDL2 wiki -> header
...
[ci skip]
2024-10-20 01:02:07 +00:00
SDL Wiki Bot
1af0b39833
Sync SDL2 wiki -> header
...
[ci skip]
2024-10-20 00:51:30 +00:00
SDL Wiki Bot
4ca7a19348
Sync SDL2 wiki -> header
...
[ci skip]
2024-10-19 18:04:39 +00:00
Ozkan Sezer
a976f7f71b
SDL_stdinc.h: provide a prototype for strdup for __clang_analyzer__ case
...
Because strdup is not ANSI but POSIX, and its prototype might be hidden..
Reference issue: https://github.com/libsdl-org/SDL/issues/11219 .
(cherry picked from commit 3ebfdb04be )
2024-10-16 22:03:50 +03:00
Sam Lantinga
da4608ed03
Fixed typo in SDL_audio.h
2024-10-10 08:49:41 -07:00
Sam Clegg
3deb07ea39
[emscripten] Fixes for data addresses above 2gb
...
This includes both wasm64 and wasm32 when addressing more than 2gb of
memory.
Fixes : #9052
2024-10-08 16:35:58 -04:00
SDL Wiki Bot
c43b976e5b
Sync SDL2 wiki -> header
2024-09-21 13:17:38 +00:00
SDL Wiki Bot
ea820edc62
Sync SDL2 wiki -> header
2024-09-10 15:35:30 +00:00
Sam Lantinga
2834d8b3b7
Revert "Sync SDL2 wiki -> header"
...
This reverts commit f23cc950f5 .
This edit was incorrect.
2024-09-04 09:15:20 -07:00
Ryan C. Gordon
155c3bb0a3
SDL_GLattr: formatted wiki documentation to be wikiheaders-friendly.
...
Reference https://github.com/libsdl-org/sdlwiki/issues/544
2024-08-12 01:23:12 -04:00
Sam Lantinga
8f5d3ca57d
Added SDL_CreateRenderer to the "see also" for SDL_RenderPresent()
2024-08-05 07:58:02 -07:00
SDL Wiki Bot
eee439debe
Sync SDL2 wiki -> header
2024-07-29 19:46:06 +00:00
Ryan C. Gordon
0ba3d9862d
SDL_RWFromFile: On Apple platforms, offer a hint to not look in resource dirs.
...
Fixes #8403 .
2024-07-29 15:45:03 -04:00
Ozkan Sezer
86b4d035db
SDL_stdinc.h (SDL_COMPILE_TIME_ASSERT): Keep C++ case alone (after PR/10331)
...
Some versions of gcc will define __STDC_VERSION__ even when compiling in C++ mode.
Reference issue: https://github.com/libsdl-org/SDL/issues/6078 which was fixed by
f6b81125b3
(cherry picked from commit 70c1012e8c )
2024-07-22 16:02:00 +03:00
Anonymous Maarten
5d606eaae2
stdinc: c23 deprecated _Static_assert in favor of static_assert
...
(cherry picked from commit 22bfbdbc02 )
2024-07-21 21:55:10 +03:00
vanfanel
9e6b8d56e3
Add SDL_VIDEO_DOUBLE_BUFFER support to the Wayland backend.
2024-07-17 16:36:04 -04:00
Ryan C. Gordon
14183f8eca
SDL_endian.h: Fix byte order detection on Solaris (and some SPARC compilers).
...
Fixes #10093 .
2024-06-28 00:11:23 -04:00
Ryan C. Gordon
d96f1d5360
begin_code: Solaris Studio has `__has_attribute` defined by isn't usable here.
...
Fixes #10095 .
2024-06-27 20:38:45 -04:00
SDL Wiki Bot
c1d10c36e7
Sync SDL2 wiki -> header
2024-06-20 16:30:15 +00:00
expikr
194d72bb29
Add SDL_MOUSE_RELATIVE_CURSOR_VISIBLE ( #7947 )
...
(cherry picked from commit ee559d51be )
2024-06-20 09:28:58 -07:00
SDL Wiki Bot
744eb00b04
Sync SDL2 wiki -> header
2024-06-16 15:02:26 +00:00
SDL Wiki Bot
143d5d779c
Sync SDL2 wiki -> header
2024-06-14 06:11:54 +00:00
Ryan C. Gordon
b2b2369414
Moved function pointer params to typedefs, etc, for latest wikiheaders.
2024-06-12 19:29:21 -04:00
Sam Lantinga
477c718744
Added wiki-style documentation for SDL_JoystickGUID
2024-06-08 08:50:24 -07:00
Carlo Bramini
2cb1a2d0a7
SDL_assert: add support for aarch64-w64-mingw32
...
GCC 15 development branch provides an experimental support for Windows on ARM64, which will be officially released next year, according to latest news.
I tried to compile SDL2 with this new compiler but I got a tiny problem into SDL_assert.h because it couldn't find the right platform.
However, it has been easy to fix and I included it into this PR.
More details can be also found here:
https://learn.microsoft.com/en-us/cpp/intrinsics/debugbreak?view=msvc-170
2024-06-03 10:52:11 -07:00
Ozkan Sezer
863670c0a8
always define PRI?64 using 'I64' when targeting windows
...
avoids -Wformat warnings from mingw toolchains -- e.g.:
src/test/SDL_test_harness.c:581:37: warning: unknown conversion type character 'l' in format [-Wformat=]
(cherry picked from commit 49b6c24722 )
2024-06-01 22:37:50 +03:00
Ozkan Sezer
6825a4aabb
SDL_config_os2.h: remove duplicated HAVE_WCSL* defines.
2024-05-28 08:01:02 +03:00
Sam Lantinga
8bc47dc3f1
Fixed compiling SDL_platform_defines.h on macOS with older compilers (thanks @sezero!)
...
Fixes #9632
(cherry picked from commit 36015ad5e5 )
2024-05-27 14:38:41 -07:00
Anonymous Maarten
6c29778826
VC+d3d12: use __has_include to detect presence of d3d12 ehaders
...
backport of 4fa5006247
2024-05-27 02:42:20 +02:00
SDL Wiki Bot
01314ff1d4
Sync SDL2 wiki -> header
2024-05-21 20:45:35 +00:00
SDL Wiki Bot
f88e8da176
Sync SDL2 wiki -> header
2024-05-20 16:47:07 +00:00
Ryan C. Gordon
0466c45605
hidapi: Replace BSD license with "original" hidapi license.
...
HIDAPI's source code licensing says this:
```
HIDAPI can be used under one of three licenses.
1. The GNU General Public License, version 3.0, in LICENSE-gpl3.txt
2. A BSD-Style License, in LICENSE-bsd.txt.
3. The more liberal original HIDAPI license. LICENSE-orig.txt
The license chosen is at the discretion of the user of HIDAPI. For example:
1. An author of GPL software would likely use HIDAPI under the terms of the
GPL.
2. An author of commercial closed-source software would likely use HIDAPI
under the terms of the BSD-style license or the original HIDAPI license.
```
Since the original license in LICENSE-orig.txt is basically only clause 3 of
the zlib license (do not remove this notice from the source code), it makes
sense to switch to it, since it adds no new requirements to the user.
(Plus, it's extremely short and direct, which is always nice.)
The entire license:
```
HIDAPI - Multi-Platform library for
communication with HID devices.
Copyright 2009, Alan Ott, Signal 11 Software.
All Rights Reserved.
This software may be used by anyone for any reason so
long as the copyright notice in the source files
remains intact.
```
Fixes #9786 .
(cherry picked from commit dd09d4b4ee )
2024-05-20 12:45:36 -04:00
SDL Wiki Bot
a26d2e705d
Sync SDL2 wiki -> header
2024-05-20 01:51:21 +00:00
SDL Wiki Bot
c419c4ce99
Sync SDL2 wiki -> header
2024-05-16 17:17:42 +00:00
SDL Wiki Bot
67bea86b10
Sync SDL2 wiki -> header
2024-05-16 15:51:44 +00:00
Ryan C. Gordon
1c3a1e1139
wikiheaders: Updated to latest, cleaned up category documentation a little.
...
This documentation needs a LOT of work--maybe someday--but it's definitely not
_broken_ right now, which is good enough for now.
2024-05-16 11:49:21 -04:00
Ryan C. Gordon
0805990668
wikiheaders: Automatically categorize API symbols by subsystem.
2024-05-14 10:50:37 -04:00
SDL Wiki Bot
b8b1ebf57b
Sync SDL2 wiki -> header
2024-05-09 20:40:40 +00:00
Ryan C. Gordon
62175552e9
SDL_video.h: Make a note that changing fullscreen mode might reset renderers.
2024-05-09 14:52:12 -04:00
SDL Wiki Bot
f23cc950f5
Sync SDL2 wiki -> header
2024-05-09 17:59:37 +00:00
Ryan C. Gordon
ed0eb7ee06
SDL_video.h: Add a '\sa' for SDL_GLContext to SDL_GL_CreateContext.
2024-05-09 13:37:53 -04:00
SDL Wiki Bot
7d0ea2a881
Sync SDL2 wiki -> header
2024-05-09 17:33:40 +00:00