Strech Blit

I thought that when calling SDL_BlitSurface if the destination Rect was
bigger than the source Rect that SDL would Strech the image to fit the
destination Rect. But I could not get this to work. Or am I confusing
this with DirectX?

If it is not standard behaviour, what do other do to achieve stretch Blits?

Thanks,

Dominique
http://www.DelphiGamer.com := go on, write a game instead;

there isn’t any SDL feature that allows surface resizing.

To do that you must use SDL_gfx lib that implements some surface
resizing and rotating functions.–
Sunday, October 10, 2004, 12:12:37 AM, vous avez ?crit:

DL> I thought that when calling SDL_BlitSurface if the destination Rect was
DL> bigger than the source Rect that SDL would Strech the image to fit the
DL> destination Rect. But I could not get this to work. Or am I confusing
DL> this with DirectX?

DL> If it is not standard behaviour, what do other do to achieve stretch Blits?

DL> Thanks,

DL> Dominique
DL> http://www.DelphiGamer.com := go on, write a game instead;

DL> _______________________________________________
DL> SDL mailing list
DL> SDL at libsdl.org
DL> http://www.libsdl.org/mailman/listinfo/sdl


Fin du message d’origine

just to add to this, you are also welcome to code your own stretch blit
routing (:

or, if you want to, you can use SDL to get to OpenGL, which has full
hardware accelerated support for stretching, rotating, color tinting etc.

OpenGL and DirectX both use the same underlying hardware so what is possible
in DX is possible in GL and is often times much simpler in GL from what i
understand (:> ----- Original Message -----

From: citrouille@wanadoo.fr (Carlos Alvarez)
To: "A list for developers using the SDL library. (includes SDL-announce)"

Sent: Sunday, October 10, 2004 3:42 PM
Subject: Re: [SDL] Strech Blit…

there isn’t any SDL feature that allows surface resizing.

To do that you must use SDL_gfx lib that implements some surface
resizing and rotating functions.


Sunday, October 10, 2004, 12:12:37 AM, vous avez ?crit:

DL> I thought that when calling SDL_BlitSurface if the destination Rect
was
DL> bigger than the source Rect that SDL would Strech the image to fit the
DL> destination Rect. But I could not get this to work. Or am I confusing
DL> this with DirectX?

DL> If it is not standard behaviour, what do other do to achieve stretch
Blits?

DL> Thanks,

DL> Dominique
DL> http://www.DelphiGamer.com := go on, write a game instead;

DL> _______________________________________________
DL> SDL mailing list
DL> SDL at libsdl.org
DL> http://www.libsdl.org/mailman/listinfo/sdl


Fin du message d’origine


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl

You can use a library called SDL_stretch, it is a nice
add-on library for SDL. google for website.

Cheers,

Paul Lowe
paul at tetravista.netOn Saturday 09 October 2004 03:12 pm, Dominique Louis wrote:

I thought that when calling SDL_BlitSurface if the
destination Rect was bigger than the source Rect that SDL
would Strech the image to fit the destination Rect. But I
could not get this to work. Or am I confusing this with
DirectX?

If it is not standard behaviour, what do other do to
achieve stretch Blits?

Thanks,

Dominique
http://www.DelphiGamer.com := go on, write a game
instead;


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl

http://sdl-stretch.sourceforge.net/On Sun, 10 Oct 2004 09:15:59 -0700, Paul Lowe <pauls_lists at tetravista.net> wrote:

You can use a library called SDL_stretch, it is a nice
add-on library for SDL. google for website.


Chris Nystrom
http://www.newio.org/~ccn
AIM: nystromchris

P.S. I have 3 Gmail invites available. Please e-mail me if you want one.

I thought that when calling SDL_BlitSurface if the destination Rect was
bigger than the source Rect that SDL would Strech the image to fit the
destination Rect. But I could not get this to work. Or am I confusing
this with DirectX?

The documentation is at
http://www.libsdl.org/cgi/docwiki.cgi/SDL_5fBlitSurface and it is pretty
explicit when it says

“The width and height in srcrect determine the size of the copied
rectangle. Only the position is used in the dstrect (the width and
height are ignored).”

If it is not standard behaviour, what do other do to achieve stretch Blits?

There are several libraries that do that kind of thing. Mostly we just
use OpenGL.

Thanks,

Dominique
http://www.DelphiGamer.com := go on, write a game instead;

Bob PendletonOn Sat, 2004-10-09 at 17:12, Dominique Louis wrote:


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl

±-------------------------------------+