SDL/include/SDL3
Sam Lantinga 2ba76dbe80 Simplified SDL_Surface
SDL_Surface has been simplified and internal details are no longer in the public structure.

The `format` member of SDL_Surface is now an enumerated pixel format value. You can get the full details of the pixel format by calling `SDL_GetPixelFormatDetails(surface->format)`. You can get the palette associated with the surface by calling SDL_GetSurfacePalette(). You can get the clip rectangle by calling SDL_GetSurfaceClipRect().

SDL_PixelFormat has been renamed SDL_PixelFormatDetails and just describes the pixel format, it does not include a palette for indexed pixel types.

SDL_PixelFormatEnum has been renamed SDL_PixelFormat and is used instead of Uint32 for API functions that refer to pixel format by enumerated value.

SDL_MapRGB(), SDL_MapRGBA(), SDL_GetRGB(), and SDL_GetRGBA() take an optional palette parameter for indexed color lookups.
2024-07-10 00:48:18 -07:00
..
SDL.h Moved the SDL version back to SDL_version.h 2024-05-15 14:38:29 -07:00
SDL_assert.h Updated headers with latest wikiheaders tweaks. 2024-06-14 02:09:55 -04:00
SDL_atomic.h Updated headers with latest wikiheaders tweaks. 2024-06-14 02:09:55 -04:00
SDL_audio.h Sync SDL3 wiki -> header 2024-07-03 20:07:11 +00:00
SDL_begin_code.h begin_code: Solaris Studio has __has_attribute defined by isn't usable here. 2024-06-27 22:13:48 -07:00
SDL_bits.h Updated headers with latest wikiheaders tweaks. 2024-06-14 02:09:55 -04:00
SDL_blendmode.h Updated headers with latest wikiheaders tweaks. 2024-06-14 02:09:55 -04:00
SDL_camera.h Simplified SDL_Surface 2024-07-10 00:48:18 -07:00
SDL_clipboard.h Updated headers with latest wikiheaders tweaks. 2024-06-14 02:09:55 -04:00
SDL_close_code.h wikiheaders: bridge wiki Category docs to the headers! 2024-05-16 11:48:23 -04:00
SDL_copying.h wikiheaders: bridge wiki Category docs to the headers! 2024-05-16 11:48:23 -04:00
SDL_cpuinfo.h Renamed DECLSPEC to SDL_DECLSPEC 2024-05-17 17:09:09 -07:00
SDL_dialog.h JANITORIAL: Fix typos in comments in various files (#10058) 2024-06-19 07:13:46 -07:00
SDL_egl.h wikiheaders: bridge wiki Category docs to the headers! 2024-05-16 11:48:23 -04:00
SDL_endian.h SDL_endian.h: Fix byte order detection on Solaris (and some SPARC compilers). 2024-06-28 00:14:26 -04:00
SDL_error.h Updated headers with latest wikiheaders tweaks. 2024-06-14 02:09:55 -04:00
SDL_events.h Remove the SDL_EVENT_WINDOW_TAKE_FOCUS event 2024-07-03 15:08:21 -04:00
SDL_filesystem.h Updated headers with latest wikiheaders tweaks. 2024-06-14 02:09:55 -04:00
SDL_gamepad.h Updated headers with latest wikiheaders tweaks. 2024-06-14 02:09:55 -04:00
SDL_guid.h Updated headers with latest wikiheaders tweaks. 2024-06-14 02:09:55 -04:00
SDL_haptic.h Updated headers with latest wikiheaders tweaks. 2024-06-14 02:09:55 -04:00
SDL_hidapi.h Updated headers with latest wikiheaders tweaks. 2024-06-14 02:09:55 -04:00
SDL_hints.h Sync SDL3 wiki -> header 2024-07-07 18:05:35 +00:00
SDL_init.h Updated headers with latest wikiheaders tweaks. 2024-06-14 02:09:55 -04:00
SDL_intrin.h wikiheaders: bridge wiki Category docs to the headers! 2024-05-16 11:48:23 -04:00
SDL_iostream.h Updated headers with latest wikiheaders tweaks. 2024-06-14 02:09:55 -04:00
SDL_joystick.h Updated headers with latest wikiheaders tweaks. 2024-06-14 02:09:55 -04:00
SDL_keyboard.h include: Clean up SDL_GetKeyName documentation. 2024-07-02 12:29:33 -04:00
SDL_keycode.h Restore default behavior for keypad keycodes 2024-07-02 18:34:35 -07:00
SDL_loadso.h Updated headers with latest wikiheaders tweaks. 2024-06-14 02:09:55 -04:00
SDL_locale.h Renamed DECLSPEC to SDL_DECLSPEC 2024-05-17 17:09:09 -07:00
SDL_log.h Updated headers with latest wikiheaders tweaks. 2024-06-14 02:09:55 -04:00
SDL_main.h emscripten: Let SDL hints be set by URL parameters. 2024-07-04 11:09:42 -04:00
SDL_main_impl.h wikiheaders: Automatically categorize API symbols by subsystem. 2024-05-14 13:30:42 -04:00
SDL_messagebox.h Updated headers with latest wikiheaders tweaks. 2024-06-14 02:09:55 -04:00
SDL_metal.h Updated headers with latest wikiheaders tweaks. 2024-06-14 02:09:55 -04:00
SDL_misc.h Updated headers with latest wikiheaders tweaks. 2024-06-14 02:09:55 -04:00
SDL_mouse.h Update descriptions for window resize cursors 2024-06-18 12:22:02 -04:00
SDL_mutex.h Updated headers with latest wikiheaders tweaks. 2024-06-14 02:09:55 -04:00
SDL_oldnames.h Simplified SDL_Surface 2024-07-10 00:48:18 -07:00
SDL_opengl.h wikiheaders: bridge wiki Category docs to the headers! 2024-05-16 11:48:23 -04:00
SDL_opengl_glext.h replaced line comments in public header. 2023-02-04 10:02:10 +03:00
SDL_opengles.h wikiheaders: bridge wiki Category docs to the headers! 2024-05-16 11:48:23 -04:00
SDL_opengles2.h wikiheaders: bridge wiki Category docs to the headers! 2024-05-16 11:48:23 -04:00
SDL_opengles2_gl2.h Switch header convention from #include "SDL.h" to #include <SDL3/SDLh> 2022-11-26 22:15:18 -08:00
SDL_opengles2_gl2ext.h Switch header convention from #include "SDL.h" to #include <SDL3/SDLh> 2022-11-26 22:15:18 -08:00
SDL_opengles2_gl2platform.h Switch header convention from #include "SDL.h" to #include <SDL3/SDLh> 2022-11-26 22:15:18 -08:00
SDL_opengles2_khrplatform.h Switch header convention from #include "SDL.h" to #include <SDL3/SDLh> 2022-11-26 22:15:18 -08:00
SDL_pen.h Updated headers with latest wikiheaders tweaks. 2024-06-14 02:09:55 -04:00
SDL_pixels.h Simplified SDL_Surface 2024-07-10 00:48:18 -07:00
SDL_platform.h Introduce formal policy for APIs that return strings. 2024-06-03 14:20:49 -04:00
SDL_platform_defines.h Fixed compiling SDL_platform_defines.h on macOS with older compilers (thanks @sezero!) 2024-05-27 14:34:21 -07:00
SDL_power.h Renamed DECLSPEC to SDL_DECLSPEC 2024-05-17 17:09:09 -07:00
SDL_properties.h Updated headers with latest wikiheaders tweaks. 2024-06-14 02:09:55 -04:00
SDL_rect.h Updated headers with latest wikiheaders tweaks. 2024-06-14 02:09:55 -04:00
SDL_render.h Simplified SDL_Surface 2024-07-10 00:48:18 -07:00
SDL_revision.h wikiheaders: bridge wiki Category docs to the headers! 2024-05-16 11:48:23 -04:00
SDL_scancode.h The keycode in key events is the base, unmodified, keycode for the current keyboard layout 2024-07-01 13:56:49 -07:00
SDL_sensor.h Updated headers with latest wikiheaders tweaks. 2024-06-14 02:09:55 -04:00
SDL_stdinc.h Sync SDL3 wiki -> header 2024-07-04 15:12:07 +00:00
SDL_storage.h Updated headers with latest wikiheaders tweaks. 2024-06-14 02:09:55 -04:00
SDL_surface.h Simplified SDL_Surface 2024-07-10 00:48:18 -07:00
SDL_system.h Updated headers with latest wikiheaders tweaks. 2024-06-14 02:09:55 -04:00
SDL_test.h Replaced test framework random code with SDL random functions 2024-06-24 11:49:15 -07:00
SDL_test_assert.h wikiheaders: bridge wiki Category docs to the headers! 2024-05-16 11:48:23 -04:00
SDL_test_common.h Added SDL_SetWindowAspectRatio() and SDL_GetWindowAspectRatio() 2024-05-28 11:52:31 -07:00
SDL_test_compare.h Add SDLTest_CompareMemory function to compare memory ranges 2024-04-15 03:05:05 -10:00
SDL_test_crc32.h wikiheaders: bridge wiki Category docs to the headers! 2024-05-16 11:48:23 -04:00
SDL_test_font.h include: A ton of little documentation tweaks, fixes, and improvements. 2024-04-09 00:50:02 -04:00
SDL_test_fuzzer.h wikiheaders: bridge wiki Category docs to the headers! 2024-05-16 11:48:23 -04:00
SDL_test_harness.h include: A ton of little documentation tweaks, fixes, and improvements. 2024-04-09 00:50:02 -04:00
SDL_test_log.h Updated copyright for 2024 2024-01-01 13:15:26 -08:00
SDL_test_md5.h Named typedef-ed structs Gave name to structs that were defined like anonymous struct with name given by typedef. Example 'typedef struct {...} Foo;' -> 'typedef struct Foo {...} Foo;' 2024-03-10 09:04:18 -07:00
SDL_test_memory.h Updated copyright for 2024 2024-01-01 13:15:26 -08:00
SDL_thread.h Updated headers with latest wikiheaders tweaks. 2024-06-14 02:09:55 -04:00
SDL_time.h Updated headers with latest wikiheaders tweaks. 2024-06-14 02:09:55 -04:00
SDL_timer.h Updated headers with latest wikiheaders tweaks. 2024-06-14 02:09:55 -04:00
SDL_touch.h Updated headers with latest wikiheaders tweaks. 2024-06-14 02:09:55 -04:00
SDL_version.h include: Fill in some documentation gaps. 2024-06-09 01:51:30 -04:00
SDL_video.h Simplified SDL_Surface 2024-07-10 00:48:18 -07:00
SDL_vulkan.h vulkan: SDL_Vulkan_CreateSurface now returns the usual int (0=ok, -1=error). 2024-06-27 15:25:10 -04:00