How to scale an SDL_Overlay surface?

hi,all!

I also have a question, how can I scale an SDL_Overlay surface ? And scale any SDL_Surface?

could someone help me out here?

thanks for your time,

Linden

Take a look at SDL_gfx
README gives this link
http://www.ferzkopp.net

PirataOn Thu, 2003-07-10 at 22:13, Linden Gu wrote:

hi,all!

I also have a question, how can I scale an SDL_Overlay surface ? And scale any SDL_Surface? 

could someone help me out here? 

thanks 	for your time,

Linden




_______________________________________________
SDL mailing list
SDL at libsdl.org

http://www.libsdl.org/mailman/listinfo/sdl

hi,all!

I also have a question, how can I scale an SDL_Overlay surface ?

To scale an overlay surface, just specify a different target rect.

And scale any SDL_Surface?

You have to scale it yourself in software, currently. Take a look at
the SDL_gfx library, as mentioned.

You can also use OpenGL with SDL to get free scaling. :slight_smile:

See ya!
-Sam Lantinga, Software Engineer, Blizzard Entertainment

Sam Lantinga wrote:

You have to scale it yourself in software, currently. Take a look at
the SDL_gfx library, as mentioned.

SDL_SoftStretch, the one used by YUV overlays when HW overlay is not
available will ever become a public call? :slight_smile:

Bye,
Gabry

Sam Lantinga wrote:

You have to scale it yourself in software, currently. Take a look at
the SDL_gfx library, as mentioned.

SDL_SoftStretch, the one used by YUV overlays when HW overlay is not
available will ever become a public call? :slight_smile:

Not until it’s cleaned up so that it doesn’t keep static data around. :slight_smile:
It’s really not meant to be exposed because a good scaling solution
should have several filtering options to improve the quality of the
final image.

See ya,
-Sam Lantinga, Software Engineer, Blizzard Entertainment