SDL2: Generate fully transparent texture
问题 How using SDL_CreateTexture create transparent texture? By default I'm creating texure with such code: SDL_CreateTexture(renderer, SDL_PIXELFORMAT_RGBA8888,SDL_TEXTUREACCESS_TARGET, x, y); And then I'm paining on this texture with redirecting output to this texture. However at the end what I want to render this on screen any (nonupdated) pixel is black. I have tried different ways with using of: SDL_RenderClear(_Renderer); or even with drawing and on created texture with painting transparent