mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-06-17 19:48:51 +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. |
||
|---|---|---|
| .. | ||
| compile_shaders.bat | ||
| compile_shaders_xbox.bat | ||
| D3D12_PixelShader_Advanced.h | ||
| D3D12_PixelShader_Advanced.hlsl | ||
| D3D12_PixelShader_Colors.h | ||
| D3D12_PixelShader_Colors.hlsl | ||
| D3D12_PixelShader_Common.hlsli | ||
| D3D12_PixelShader_Textures.h | ||
| D3D12_PixelShader_Textures.hlsl | ||
| D3D12_RootSig_Advanced.h | ||
| D3D12_RootSig_Color.h | ||
| D3D12_RootSig_Texture.h | ||
| D3D12_Shader_Common.hlsli | ||
| D3D12_VertexShader.hlsl | ||
| D3D12_VertexShader_Advanced.h | ||
| D3D12_VertexShader_Color.h | ||
| D3D12_VertexShader_Texture.h | ||
| SDL_render_d3d12.c | ||
| SDL_render_d3d12_xbox.cpp | ||
| SDL_render_d3d12_xbox.h | ||
| SDL_shaders_d3d12.c | ||
| SDL_shaders_d3d12.h | ||
| SDL_shaders_d3d12_xboxone.cpp | ||
| SDL_shaders_d3d12_xboxseries.cpp | ||