Allocate a new RGB surface with a specific pixel format.
SDL_Surface* SDL_CreateSurfaceint width, int height, Uint32 format); (
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.