kc3-lang/SDL/src/dynapi

Branch :


Log

Author Commit Date CI Message
8728ce44 2019-06-08 14:54:37 Fixed bug 4557 - SDL_SIMDAlloc and *Free should be in the public interface Martin Gerhardy These functions are really useful and should get exposed imo.
de82759c 2019-03-19 07:53:33 Added support for building SDL as a dynamic library on iOS
5e13087b 2019-01-04 22:01:14 Updated copyright for 2019
5029d50e 2018-11-10 16:15:48 Add SDL_TouchDeviceType enum and SDL_GetTouchDeviceType(SDL_TouchID id). Touch device types include SDL_TOUCH_DEVICE_DIRECT (a touch screen with window-relative coordinates for touches), SDL_TOUCH_DEVICE_INDIRECT_ABSOLUTE (a trackpad-style device with absolute device coordinates), and SDL_TOUCH_DEVICE_INDIRECT_RELATIVE (a trackpad-style device with screen cursor-relative coordinates). Phone screens are an example of a direct device type. Mac trackpads are the indirect-absolute touch device type. The Apple TV remote is an indirect-relative touch device type.
62494a2e 2018-10-31 15:03:41 Merge SDL-ryan-batching-renderer branch to default.
14329256 2018-10-25 16:53:14 Generalized the XInput user index into a player index
9987ca69 2018-10-25 12:54:42 Added SDL_JoystickGetXInputUserIndex()
8340b0f0 2018-10-23 01:34:03 render: Add floating point versions of various draw APIs.
cbacb0f1 2018-10-14 23:50:50 add missing include.
acb05f50 2018-10-11 16:40:01 thread: make SDL_CreateThreadWithStackSize() a public API.
1ecf4dfc 2018-10-04 16:34:44 render: Added SDL_RenderFlush().
ef347048 2018-09-24 16:41:55 Fixed bug 4264 - SDL_CreateTextureFromSurface generates error message but returns ok Anthony @ POW Games SDL_CreateTextureFromSurface makes an internal call to SDL_GetColorKey which can return an error and spams the error log with "Surface doesn't have a colorkey" even though the original function didn't return an error.
f225af0c 2018-08-22 21:48:28 Added SDL_GetDisplayOrientation() to get the display orientation, and added a new event SDL_DISPLAYEVENT to notify the application when the orientation changes. Documented the values returned by the accelerometer and gyroscope sensors
6f758ad2 2018-08-21 20:03:54 Moved SDL_IsTablet() to a cross-platform API function
7c3040e0 2018-08-21 12:11:34 First pass on the new SDL sensor API
109544ca 2018-08-21 11:23:47 Add SDL_IsTablet() to Android and iOS SDL.
d2042e1e 2018-08-09 16:00:17 Added HIDAPI joystick drivers for more consistent support for Xbox, PS4 and Nintendo Switch Pro controller support across platforms. Added SDL_GameControllerRumble() and SDL_JoystickRumble() for simple force feedback outside of the SDL haptics API
b4fe7412 2018-08-04 11:52:46 SDL_exp
ff8c9538 2018-07-12 13:28:13 Allow trapping the back button so right mouse click can work on some Android systems (thanks Rachel!) Also, added a function SDL_AndroidBackButton() so applications can respond to the back button directly
a5158535 2018-06-18 13:14:02 Added support for external mouse in Samsung DeX mode relative mode doesn't work, but absolute coordinates are functional
113801b7 2018-06-05 12:46:13 Added SDL_IsChromebook() to determine if we're running on a Chromebook.
4df859c5 2018-05-21 11:35:42 cpuinfo: Added SDL_HasAVX512F(). This checks for the "foundation" AVX-512 instructions (that all AVX-512 compatible CPUs support).
e2619f1d 2018-05-17 12:50:46 dynapi: don't let system loader resolve the initializer to the wrong version. Fixes problems launching Firewatch on Linux (which statically links SDL but also dynamically loads a system-wide copy from a plugin shared library) with a newer SDL build.
43231256 2018-04-23 19:18:52 Added SDL_LinuxSetThreadPriority() to directly set the priority of a Linux thread (tid) This function tries using RealtimeKit connecting over DBUS as needed.
a8ac5885 2018-03-07 13:30:40 Added SDL_GameControllerMappingForDeviceIndex() to get the mapping for a controller before it's opened
40b27fd5 2018-02-12 17:00:00 revert the recent typecast assignment changes (see bug #4079) also change the void* typedefs for the two vulkan function pointers added in vulkan_internal.h into generic function pointer typedefs.
4c2a444e 2018-02-08 17:07:47 add SDL_log10 and SDL_log10f to include and dynapi
6ed184ec 2018-02-06 15:03:35 Added SDL_IsAndroidTV()
90e72bf4 2018-01-30 18:08:34 Fixed ISO C99 compatibility SDL now builds with gcc 7.2 with the following command line options: -Wall -pedantic-errors -Wno-deprecated-declarations -Wno-overlength-strings --std=c99
e3cc5b2c 2018-01-03 10:03:25 Updated copyright for 2018
cf3d4503 2017-12-08 14:30:10 Added SDL_RenderGetMetalLayer() and SDL_RenderGetMetalCommandEncoder()
a6a4e27a 2017-11-12 22:51:12 Updated SDL's YUV support, many thanks to Adrien Descamps New functions get and set the YUV colorspace conversion mode: SDL_SetYUVConversionMode() SDL_GetYUVConversionMode() SDL_GetYUVConversionModeForResolution() SDL_ConvertPixels() converts between all supported RGB and YUV formats, with SSE acceleration for converting from planar YUV formats (YV12, NV12, etc) to common RGB/RGBA formats. Added a new test program, testyuv, to verify correctness and speed of YUV conversion functionality.
bcdf8b91 2017-11-04 17:35:03 Added SDL_fmod() and SDL_fmodf()
34502143 2017-11-04 15:34:14 Added float versions of SDL's math functions
72932906 2017-10-19 18:05:42 audio: Added SDL_AudioStreamFlush().
80f8464d 2017-10-18 15:54:05 Added audio stream conversion functions: SDL_NewAudioStream SDL_AudioStreamPut SDL_AudioStreamGet SDL_AudioStreamAvailable SDL_AudioStreamClear SDL_FreeAudioStream
9c580e14 2017-10-12 13:44:28 Added functions to query and set the SDL memory allocation functions: SDL_GetMemoryFunctions() SDL_SetMemoryFunctions() SDL_GetNumAllocations()
d90fce3c 2017-10-10 11:10:15 Exposed the joystick locking functions for multi-threaded access to the joystick API
fb283932 2017-09-06 19:35:36 vulkan: use "unsigned int" instead of "unsigned"
37ce9f27 2017-08-27 23:13:15 Fixed typedef redefinition errors when including both SDL_vulkan.h and vulkan.h You should always include vulkan/vulkan.h first, then include SDL_vulkan.h
eb5392ad 2017-08-27 20:41:29 Added the new Vulkan API functions to exported functions
b7c5d151 2017-08-27 18:53:30 SDL_dynapi.c: add missing SDLCALL to macros.
a38f127e 2017-08-27 18:52:43 Swapped conditional arguments for standard SDL readability
30fe9a67 2017-08-27 18:49:36 SDL_dynapi.h: revert commit ee88fe3e353e in order to enable dynapi [ optional ]
50d3fe21 2017-08-27 18:49:11 SDL_dynapi_procs.h: adjust SDL_CreateThread for os/2
8c39d1d0 2017-08-25 12:27:18 OS/2: fixed inverted logic bug (thanks, Ozkan!).
2213077a 2017-08-25 11:31:12 OS/2: proper fix for dynapi (thanks, Ozkan!).
a3890ff6 2017-08-22 15:50:39 dynapi: fill in OS/2 loading code (thanks, Ozkan!). Partially fixes Bugzilla #3765.
f6ad070b 2017-08-21 13:00:58 SDL_dynapi.h: disable dynapi for os/2.
f142a796 2017-08-14 13:37:14 Fixed bug 2441 - SDL_DuplicateSurface Rainer Deyke I've written a small patch that adds a small SDL_DuplicateSurface function to SDL. I've written the function as part of a larger (as yet unfinished) patch, but I think this function is useful enough that it merits inclusion in SDL on its own.
c59d9923 2017-08-14 05:51:44 Implemented more flexible blending modes for accelerated renderers This fixes bug 2594 - Propose new blend mode, SDL_BLENDMODE_BLEND_DSTA blendMode = SDL_ComposeCustomBlendMode(SDL_BLENDFACTOR_SRC_ALPHA, SDL_BLENDFACTOR_ONE_MINUS_SRC_ALPHA, SDL_BLENDOPERATION_ADD, SDL_BLENDFACTOR_ZERO, SDL_BLENDFACTOR_ONE, SDL_BLENDOPERATION_ADD); This fixes bug 2828 - Subtractive Blending blendMode = SDL_ComposeCustomBlendMode(SDL_BLENDFACTOR_SRC_ALPHA, SDL_BLENDFACTOR_ONE, SDL_BLENDOPERATION_SUBTRACT, SDL_BLENDFACTOR_ZERO, SDL_BLENDFACTOR_ONE, SDL_BLENDOPERATION_SUBTRACT); This goes partway to fixing bug 3684 - Add support for a pre-multiplied alpha blending mode blendMode = SDL_ComposeCustomBlendMode(SDL_BLENDFACTOR_ONE, SDL_BLENDFACTOR_ONE_MINUS_SRC_ALPHA, SDL_BLENDOPERATION_ADD, SDL_BLENDFACTOR_ONE, SDL_BLENDFACTOR_ONE_MINUS_SRC_ALPHA, SDL_BLENDOPERATION_ADD);
f1829d95 2017-08-13 20:37:49 Added SDL_wcscmp()
dc400184 2017-08-09 11:58:38 Added an API SDL_LoadFile_RW() to load all the data from an SDL data stream, and a convenience macro SDL_LoadFile() to load all the data from a file.
22241ed0 2017-07-01 17:50:47 Support for QNX 7.0 (thanks, Elad!). Fixes Bugzilla #3686.
d4086e4a 2017-05-29 03:01:05 stdlib: added SDL_utf8strlen().
763e1389 2017-03-09 16:09:16 Added an API to get the joystick instance ID before opening the device: SDL_JoystickGetDeviceInstanceID()
06ccb71b 2017-02-10 11:21:15 Make sure the memory barrier functions are always available, and now they are implemented on Android __ARM_ARCH_5TE__
3c90a52a 2017-01-27 05:59:58 Added an API to get the type of a connected joystick
4938c505 2017-01-04 10:28:07 Added SDL_JoystickGetAxisInitialState() to get a joystick axis' initial value. This is useful for controller mapping programs to determine an axis' zero state
45b774e3 2017-01-01 18:33:28 Updated copyright for 2017
85d8a79f 2016-12-12 09:19:48 Fixed updated return value for SDL_GL_SwapWindow() Ozkan Sezer http://hg.libsdl.org/SDL/rev/464a2676d8ab seems to have forgotten removing the return from SDL_dynapi_procs.h, and this patch does that. Without it, MSVC warns: c:\sdl2\src\dynapi\SDL_dynapi_procs.h(598) : warning C4098: 'SDL_GL_SwapWindow_DEFAULT' : 'void' function returning a value c:\sdl2\src\dynapi\SDL_dynapi_procs.h(598) : warning C4098: 'SDL_GL_SwapWindow' : 'void' function returning a value
8414c3d4 2016-12-11 12:01:44 Fixed ABI, don't change the return type of SDL_GL_SwapWindow()
524bf3c2 2016-12-09 01:47:43 Fixed bug 3513 - SDL_GL_SwapWindow does not return error status Return an error code from SDL_GL_SwapWindow(), like the other SDL APIs.
dd5d85a4 2016-11-29 06:36:57 Added an API to iterate over game controller mappings
36156335 2016-11-20 21:34:54 Renaming of guard header names to quiet -Wreserved-id-macro Patch contributed by Sylvain
35430a73 2016-11-17 01:15:16 cpuinfo: first attempt at SDL_HasNEON() implementation.
ac74e16c 2016-11-10 17:19:34 Standardized the format of the SDL joystick GUID and added functions to retrieve the USB VID/PID from a joystick and game controller.
9a8642bd 2016-11-01 10:30:46 Fixed bug 3478 - Patch Haiku to use dlopen instead of load_add_on Kai Sterker SDL2 on Haiku so far uses Haiku-specific APIs for loading dynamic objects as add-ons, instead of using dlopen to load them as libraries. This, for example, leads to SDL_mixer not being able to load its audio backends, when compiled with standard settings. As discussed at https://www.freelists.org/post/haikuports/SDL2-mixer-ogg-music-not-playing-and-other-stuff,2 , the best way to deal with this would be using dlopen instead of load_add_on. The following patch implements this change by dropping the Haiku-specific bits and using dlopen instead.
27d4f099 2016-10-07 23:40:44 Implemented SDL_GetHintBoolean() to make it easier to check boolean hints
d2676c29 2016-10-07 17:04:58 Fixed bug 2924 - SDL_CreateRGBSurface[From] versions that take SDL_PIXELFORMAT enum Daniel Gibson Currently, SDL_CreateRGBSurface() and SDL_CreateRGBSurfaceFrom() take Uint32 masks for RGBA to "describe" the Pixelformat of the surface. Internally those value are only used to map to one of the SDL_PIXELFORMAT_* enum values that are used for further processing. I think it would be both handy and more efficient to be able to specify SDL_PIXELFORMAT_* yourself without using SDL_PixelFormatEnumToMasks() to create masks first, so I implemented functions that do that: SDL_CreateRGBSurfaceWithFormat() and SDL_CreateRGBSurfaceWithFormatFrom() which are like the versions without "WithFormat" but instead of taking 4 Uint32s for R/G/B/A masks, they take one for a SDL_PIXELFORMAT_* enum value. Together with https://bugzilla.libsdl.org/show_bug.cgi?id=2923 creating a SDL_Surface* from RGBA data (e.g. from stb_image) is as easy as surf = SDL_SDL_CreateRGBSurfaceWithFormat(0, w, h, bppToUse*8, SDL_PIXELFORMAT_RGBA32);
4f4c4b62 2016-09-29 22:52:41 Added SDL_SetWindowResizable(). (thanks, Ethan!)
73153901 2016-08-06 02:47:27 audio: Implemented buffer queueing for capture devices (SDL_DequeueAudio()).
de5daaad 2016-07-17 20:32:44 Fixed compile warnings about evaluating undefined identifiers. Partially fixes Bugzilla #3351.
37a54167 2016-02-13 17:35:38 PSP: Deactivated dynamic API. Thanks to Bugzilla #3240 for pointing this out.
5dcf6bcc 2016-01-07 14:51:22 Updated dynamic API table.
3bdaf4c6 2016-01-05 02:46:10 Added SDL_SetWindowOpacity() and SDL_GetWindowOpacity(). This is currently implemented for X11, Cocoa, Windows, and DirectFB. This patch is based on work in Unreal Engine 4's fork of SDL, compliments of Epic Games.
5696e88e 2016-01-05 02:29:06 Added SDL_GetWindowBordersSize(). This is currently only implemented for X11. This patch is based on work in Unreal Engine 4's fork of SDL, compliments of Epic Games.
e497e465 2016-01-05 02:28:56 Added SDL_SetWindowInputFocus(). This is currently only implemented for X11. This patch is based on work in Unreal Engine 4's fork of SDL, compliments of Epic Games.
c3114975 2016-01-04 23:52:40 Added SDL_GetDisplayUsableBounds().
fa8c83c1 2016-01-03 06:50:50 Remove almost all instances of "volatile" keyword. As Tiffany pointed out in Bugzilla, volatile is not useful for thread safety: https://software.intel.com/en-us/blogs/2007/11/30/volatile-almost-useless-for-multi-threaded-programming/ Some of these volatiles didn't need to be, some were otherwise protected by spinlocks or mutexes, and some got moved over to SDL_atomic_t data, etc. Fixes Bugzilla #3220.
42065e78 2016-01-02 10:10:34 Updated copyright to 2016
e6ad29ae 2015-11-14 12:35:45 Added SDL_JoystickFromInstanceID() and SDL_GameControllerFromInstanceID().
e015140a 2015-09-30 15:38:18 SDL - add dynapi entry points for SDL_JoystickCurrentPowerLevel
b0e145b3 2015-07-29 17:19:06 Move GetDisplayDPI to the end of the file.
61c74150 2015-07-29 17:18:56 Add SDL_GetDisplayDPI routine and implement for Windows.
b2458630 2015-07-18 00:04:49 Fixed dynapi for new SDL_WarpMouseGlobal() function signature.
e346f142 2015-07-17 21:03:58 SDL_WarpMouseGlobal() should return non-void. There are platforms it isn't implemented on (and currently can't be implemented on!), and there's currently no way for an app to know this. This shouldn't break ABI on apps that moved to a revision between 2.0.3 and 2.0.4.
0e45984f 2015-06-21 17:33:46 Fixed crash if initialization of EGL failed but was tried again later. The internal function SDL_EGL_LoadLibrary() did not delete and remove a mostly uninitialized data structure if loading the library first failed. A later try to use EGL then skipped initialization and assumed it was previously successful because the data structure now already existed. This led to at least one crash in the internal function SDL_EGL_ChooseConfig() because a NULL pointer was dereferenced to make a call to eglBindAPI().
2c4a6ea0 2015-05-26 06:27:46 Updated the copyright year to 2015
1c6ea0f2 2015-05-13 22:39:32 Added a userdata parameter to SDL_SetWindowsMessageHook()
b2be9253 2015-05-13 22:39:27 Fixed Mac and Linux builds
7de242e7 2015-05-13 22:39:20 Added SDL_SetWindowsMessageHook() to facilitate full IME support on Windows
d4aedf99 2015-04-21 09:45:58 Added SDL_SetWindowModalFor(). This is currently only implemented for X11. This patch is based on work in Unreal Engine 4's fork of SDL, compliments of Epic Games.
b72938c8 2015-04-20 12:22:44 Windows: Always set the system timer resolution to 1ms by default. An existing hint lets apps that don't need the timer resolution changed avoid this, to save battery, etc, but this fixes several problems in timing, audio callbacks not firing fast enough, etc. Fixes Bugzilla #2944.
fe6c797c 2015-04-10 23:30:31 Fixed an iOS view orientation issue when SDL_GL_CreateContext or SDL_CreateRenderer is called.
c4035654 2015-04-09 19:28:00 Added framebuffer and colorbuffer members to the uikit portion of the SDL_SysWMinfo struct, removed SDL_iOSGetViewRenderbuffer and SDL_iOSGetViewFramebuffer.
fcd0f06a 2015-04-08 15:59:29 Renamed SDL_iPhoneGetViewFramebuffer/Renderbuffer to SDL_iOSGetViewFramebuffer/Renderbuffer. Added #defines for SDL_iOSSetAnimationCallback and SDL_iOSSetEventPump, which point to SDL_iPhoneSetAnimationCallback and SDL_iPhoneSetEventPump.
1152a759 2015-04-08 15:44:07 Generated dynapi prototypes for the new iPhone functions.
a0e878aa 2015-03-28 00:48:03 Minor input grab clarifications. Clarify that grabbing the mouse only works with one window at a time; this was always true at the system level, though SDL could previously get confused by multiple simultaneous grabs, so now we explicitly break any existing grab before starting a new one and document it as such. Also track the window that is currently grabbed, and provide an API to query for that window. This makes it easy to automate mouse ungrabbing at breakpoints with gdb7's scripting, since the scripts can now know which window to ungrab. In 2.1, we should probably change this API to SDL_GrabInput(win) and SDL_UngrabInput(void), or something.
03f5185e 2015-03-25 11:18:54 Make the Dynamic API master switch more clear.