Advertisement

Image scaling in SDL c++

Started by November 30, 2014 01:29 PM
0 comments, last by ultramailman 10 years, 1 month ago

I was wondering, what is the best way to go about scaling an image in SDL using C++. I want to use this in order to make a health and armor bar graphically. I'm not to sure how to do it, many thanks for any help!

If you are using SDL2, just use a bigger rectangle for dstrect. The texture will stretch to fit the dstrect.

https://wiki.libsdl.org/SDL_RenderCopy

This topic is closed to new replies.

Advertisement