1
vote
1answer
78 views

When to use color keying vs PNG transparency?

With (SDL in this case) one can use color keying to make a certain color in an image transparent. Images in .png format can have transparency, and can be loaded with SDL. When is it better to use a ...
0
votes
1answer
74 views

Render two images to an SDL_window

I want to create a menu for an SDL game, so I load an Image to an SDL_Window as the background, then I try to load the next image which will be a button but it doesn't display the button to the ...
1
vote
1answer
425 views

Lost transparency in SDL surfaces drawn manually

I want to create SDL_Surface objects for each layer of my 2d tile-based map so that I have to render only one surface per layer rather than too many tiles. With normal tiles which do not have ...
2
votes
1answer
466 views

Colour Problems When Using SDL_Resize()

In a 3D SDL application I inherited (I have little 3D or SDL experience), I have a 'screenshot' routine that either saves a full-size image or a scaled image, depending on the context (differing ...