mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-06-07 07:00:48 +00:00
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. |
||
|---|---|---|
| .. | ||
| blank_cursor.h | ||
| default_cursor.h | ||
| imKStoUCS.c | ||
| imKStoUCS.h | ||
| scancodes_darwin.h | ||
| scancodes_linux.h | ||
| scancodes_windows.h | ||
| scancodes_xfree86.h | ||
| SDL_clipboardevents.c | ||
| SDL_clipboardevents_c.h | ||
| SDL_displayevents.c | ||
| SDL_displayevents_c.h | ||
| SDL_dropevents.c | ||
| SDL_dropevents_c.h | ||
| SDL_events.c | ||
| SDL_events_c.h | ||
| SDL_keyboard.c | ||
| SDL_keyboard_c.h | ||
| SDL_keymap.c | ||
| SDL_keymap_c.h | ||
| SDL_keysym_to_scancode.c | ||
| SDL_keysym_to_scancode_c.h | ||
| SDL_mouse.c | ||
| SDL_mouse_c.h | ||
| SDL_pen.c | ||
| SDL_pen_c.h | ||
| SDL_quit.c | ||
| SDL_scancode_tables.c | ||
| SDL_scancode_tables_c.h | ||
| SDL_touch.c | ||
| SDL_touch_c.h | ||
| SDL_windowevents.c | ||
| SDL_windowevents_c.h | ||