Stretching sprites

Sam Lantinga wrote:

hayward at slothmud.org wrote:

No… thats beyond the scope of SDL.
SDL is for the graphics layer, you’ll have to use an add-on library that
supports sprite handling. You might check the SDL Libraries page, there
is a pointer to a library that handles sprites. It may do what you
request.

Hmmm, I always thought this was possible with SDL. If SDL doesn’t have
this functionality it is not that hard (but very boring) to add - it is
not that much code either… Hermes can do it :wink:

IMO it should, too… if it has a standard blitter, a scale blitter would be
very useful.

I’ll probably add one to SDL 1.1 at some point.

That would be especially beneficial to games that run in multiple resolutions,
there’s usually some graphics you have to resize to keep the proportions the
same, like bitmapped fonts and such.–
-= aaron p. matthews
-= rivalgames
-= http://www.rivalgames.com

Does SDL support stretching sprites???

It would be good.

thanks :wink:

No… thats beyond the scope of SDL.
SDL is for the graphics layer, you’ll have to use an add-on library that
supports sprite handling. You might check the SDL Libraries page, there
is a pointer to a library that handles sprites. It may do what you
request.–
Brian Hayward

On Fri, 3 Mar 2000, tigre wrote:

Does SDL support stretching sprites???

It would be good.

thanks :wink:

Does SDL support stretching sprites???

It would be good.

thanks :wink:

No, but the SGE library does, check it out on the SDL library page

cheers,
Dave “PenguinDude” Archbold
davea at radiks.netOn Friday, March 03, 2000 1:20 PM, tigre [SMTP:af at sadf.es] wrote:

hayward at slothmud.org wrote:

No… thats beyond the scope of SDL.
SDL is for the graphics layer, you’ll have to use an add-on library that
supports sprite handling. You might check the SDL Libraries page, there
is a pointer to a library that handles sprites. It may do what you
request.

Hmmm, I always thought this was possible with SDL. If SDL doesn’t have
this functionality it is not that hard (but very boring) to add - it is
not that much code either… Hermes can do it ;)–
Daniel Vogel My opinions may have changed,
666 @ http://grafzahl.de but not the fact that I am right

Hmmm, I always thought this was possible with SDL. If SDL doesn’t have
this functionality it is not that hard (but very boring) to add - it is
not that much code either… Hermes can do it :wink:

Ok, I probably shouldn’t speak on Sam’s behalf here, but my impression
from past debates is that SDL is designed to be a simple low-level
portable graphics library. There is no intention to integrate widgets,
high level sprite handling, or stuff like that into SDL.

Thats why they exist in a seperate library, not within SDL itself.
Sure, it would be simple enough to add to SDL, but my hunch is, you’ll
have to put it into your own library, not directly into SDL.–
Brian

hayward at slothmud.org wrote:

No… thats beyond the scope of SDL.
SDL is for the graphics layer, you’ll have to use an add-on library that
supports sprite handling. You might check the SDL Libraries page, there
is a pointer to a library that handles sprites. It may do what you
request.

Hmmm, I always thought this was possible with SDL. If SDL doesn’t have
this functionality it is not that hard (but very boring) to add - it is
not that much code either… Hermes can do it :wink:

IMO it should, too… if it has a standard blitter, a scale blitter would be
very useful.

Nicholas

hayward at slothmud.org wrote:

No… thats beyond the scope of SDL.
SDL is for the graphics layer, you’ll have to use an add-on library that
supports sprite handling. You might check the SDL Libraries page, there
is a pointer to a library that handles sprites. It may do what you
request.

Hmmm, I always thought this was possible with SDL. If SDL doesn’t have
this functionality it is not that hard (but very boring) to add - it is
not that much code either… Hermes can do it :wink:

IMO it should, too… if it has a standard blitter, a scale blitter would be
very useful.

I’ll probably add one to SDL 1.1 at some point.

-Sam Lantinga				(slouken at devolution.com)

Lead Programmer, Loki Entertainment Software–
“Any sufficiently advanced bug is indistinguishable from a feature”
– Rich Kulawiec

hayward at slothmud.org wrote:

No… thats beyond the scope of SDL.
SDL is for the graphics layer, you’ll have to use an add-on library that
supports sprite handling. You might check the SDL Libraries page, there
is a pointer to a library that handles sprites. It may do what you
request.

Hmmm, I always thought this was possible with SDL. If SDL doesn’t have
this functionality it is not that hard (but very boring) to add - it is
not that much code either… Hermes can do it :wink:

IMO it should, too… if it has a standard blitter, a scale blitter would be
very useful.

I’ll probably add one to SDL 1.1 at some point.

-Sam Lantinga (slouken at devolution.com)

I was actually thinking of trying this tonight… having gotten my name in the
credits once, I’m impatient to do it more often. :slight_smile:

Nicholas