Allocate a new RGB surface with a specific pixel format.
Defined in <SDL3/SDL_surface.h>
width | the width of the surface |
height | the height of the surface |
format | the SDL_PixelFormatEnum for the new surface's pixel format. |
Returns the new SDL_Surface structure that is created or NULL if it fails; call SDL_GetError() for more information.
This function is available since SDL 3.0.0.