SoftStretch problems

Does SDL_SoftStretch support Alpha surfaces for blits…

I use IMG_Load to load a png and want to blit that(alpha) to another
surface(alpha) …
SDL_BlitSurface works just fine but SoftStretch does not

Does SDL_SoftStretch support Alpha surfaces for blits…

no. it’s not officially part of the SDL API

“Mattias Engdeg?rd” schrieb im Newsbeitrag
news:200105161907.VAA05624 at my.nada.kth.se

Does SDL_SoftStretch support Alpha surfaces for blits…

no. it’s not officially part of the SDL API

And color-keying would also be fine :wink:

“Mattias Engdeg?rd” schrieb im Newsbeitrag
news:200105161907.VAA05624 at my.nada.kth.se

Does SDL_SoftStretch support Alpha surfaces for blits…

no. it’s not officially part of the SDL API

doh…
can you please enhance the softstretch function to support alpha surfaces
?!?

Best wishes
from PeZ

can you please enhance the softstretch function to support alpha surfaces

I could but I won’t

“Mattias Engdeg?rd” schrieb im Newsbeitrag
news:200105170926.LAA18846 at my.nada.kth.se

can you please enhance the softstretch function to support alpha surfaces

I could but I won’t

doh

“Mattias Engdeg?rd” schrieb im Newsbeitrag
news:200105170926.LAA18846 at my.nada.kth.se

can you please enhance the softstretch function to support alpha surfaces

I could but I won’t

i will ask the married man if you are not willing…cause i kind of need
this function coop with alpha… :wink:

You do realise that as a programmer you have the ability to “create your
own functions”? You can even take the SDL_SoftStretch function, modify
it and include it in your own code.

Its the code of tomorrow, today!On Thu, May 17, 2001 at 06:01:17AM -0700, Tim ‘PeZ’ Theede wrote:

“Mattias Engdeg?rd” schrieb im Newsbeitrag
news:200105170926.LAA18846 at my.nada.kth.se

can you please enhance the softstretch function to support alpha surfaces

I could but I won’t

i will ask the married man if you are not willing…cause i kind of need
this function coop with alpha… :wink:

Martin

Bother, said Mrs. Bobbitt, and deleted her husband’s prize.

“Martin Donlon” schrieb im Newsbeitrag
news:20010518204909.B20201 at csn.ul.ie

“Mattias Engdeg?rd” schrieb im Newsbeitrag
news:200105170926.LAA18846 at my.nada.kth.se

can you please enhance the softstretch function to support alpha
surfaces

I could but I won’t

i will ask the married man if you are not willing…cause i kind of
need

this function coop with alpha… :wink:
You do realise that as a programmer you have the ability to “create your
own functions”? You can even take the SDL_SoftStretch function, modify
it and include it in your own code.

Its the code of tomorrow, today!


Martin

Bother, said Mrs. Bobbitt, and deleted her husband’s prize.

i certainly do realise it…
but im not in any way enough “trained” with asm that i can do a fast enough
function …(and i dont have the time either)

ZeeYa
PeZ> On Thu, May 17, 2001 at 06:01:17AM -0700, Tim ‘PeZ’ Theede wrote:

Tim ‘PeZ’ Theede wrote:

Does SDL_SoftStretch support Alpha surfaces for blits…

I use IMG_Load to load a png and want to blit that(alpha) to another
surface(alpha) …
SDL_BlitSurface works just fine but SoftStretch does not

Here is my zotozoomer code (rotate and zoom with bilinear scaling) for
SDL surfaces that handles alpha channels as well:

http://de.ferzkopp.net/Software/SDL_rotozoom/index.html

Ciao
Andreas

“Andreas Schiffler” schrieb im Newsbeitrag
news:3B0A5D1C.9CCDFFAE at home.com

Tim ‘PeZ’ Theede wrote:

Does SDL_SoftStretch support Alpha surfaces for blits…

I use IMG_Load to load a png and want to blit that(alpha) to another
surface(alpha) …
SDL_BlitSurface works just fine but SoftStretch does not

Here is my zotozoomer code (rotate and zoom with bilinear scaling) for
SDL surfaces that handles alpha channels as well:

http://de.ferzkopp.net/Software/SDL_rotozoom/index.html

Ciao
Andreas

the last version i checked crashed …i never got it running…

I will try it again… thanxs for your help

PeZ

im sorry… but it doesn’t work … it puts out an access-violation

PeZ

Tim ‘PeZ’ Theede wrote:

im sorry… but it doesn’t work … it puts out an access-violation

OK. I’ll check it and add a test program!
(when I have time)

Ciao
Andreas

Tim (and all),

the last version i checked crashed …i never got it running…

I’ve updated the package - it includes build scripts and a demo program
now (spinning SDL logo). Doesn’t crash here!?

http://de.ferzkopp.net/Software/SDL_rotozoom/index.html

Ciao
Andreas

I will try it… at first sight … the problem perhaps could be that im
using pngs…

Greets
PeZ

On Wed May 23, 2001 at 12:20:13PM -0700, the boisterous
Andreas Schiffler
wrote to me:

I’ve updated the package - it includes build scripts and a demo program
now (spinning SDL logo). Doesn’t crash here!?

http://de.ferzkopp.net/Software/SDL_rotozoom/index.html

For me, testrotozoom.c doesn’t crash. As read in README ;-), I suggest you
to add the stuff from src/video/SDL_stretch.c (only stretching of surfaces),
this could be a speedup.

so long
Thomas–
___ Obviously we do not want to leave zombies around.
/\ - W. Richard Stevens
( ^ >
/ \ Thomas Krennwallner
(
/) Fingerprint: 9484 D99D 2E1E 4E02 5446 DAD9 FF58 4E59 67A1 DA7B