I am fairly new to SDL2 and I am facing a problem. I can’t figure out why my surface is always black.
I am using the function SDL_Surface, and even after looking the documentation about the function i can’t understand how to use it. I just want to create a surface with a red background
So far I have tried : SDL_CreateRGBSurface(0, 200, 25, 32, 255, 0, 0, 0, 0);
and SDL_CreateRGBSurface(0, 200, 25, 32, 0xff000000, 0x00000000, 0x00000000, 0);
As I am not native english, I have some troubles understanding the documentation and I can’t find viable example of this function.