Sign in to follow this  
Player_0

SDL question

Recommended Posts

Player_0    99
Hello! Is there a way to display a bitmap at a different size than what it was made at? For example showing a 16x16 bitmap at 32x32. Would I have to bring in OpenGL to do things like this?

Share this post


Link to post
Share on other sites
Boder    938
If you have no filtering, it is pretty easy to do yourself. Create a new surface and copy over the pixels double-sized.

Otherwise, look into SDL_gfx

Share this post


Link to post
Share on other sites
leiavoia    960
You could use SDL_gfx for places where you already know the size ahead of time. Then resize and use the new graphics (i've done that when i wanted to switch between different size tiles). However, you you want on-the-fly rotation and scaling (and blending and ...), seriously consider using the SDL+OpenGL combo.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this