All Questions
4 questions
3
votes
1
answer
492
views
SDL2_ttf gradient
I want to render some text using a gradient instead of a solid color, but I can't figure out how to. I first load a gradient like this:
...
2
votes
1
answer
6k
views
Scaling an SDL Surface
I want to create a button for a game's UI. The background uses a gradient and then I blit a surface on top of the gradient and use SDL_SetColorKey to delete the unwanted pixels. The surfaces are not ...
1
vote
1
answer
8k
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 window,...
3
votes
1
answer
3k
views
Background color gradient with SDL
I want to create a menu for a game using a color gradient as the background. Is there a way to create a gradient background instead of using an image for it (since I don't know what size the window ...