[SDL] Multiple image files or just one?

Jimmy jimmy at jimmysworld.org
Wed Jan 23 11:24:01 PST 2002


On Wed, 2002-01-23 at 13:50, David Olofson wrote:
> On Wednesday 23 January 2002 19:24, Jimmy wrote:
> [...]
> > > > SDL_BlitSurface only uses the srcrect to determine size, no?  You
> > > > can't blit a smaller section of a larger surface like you're
> > > > suggesting.  At least not with BlitSurface.
> > >
> > > On the contrary, that's *exactly* what SFont and similar libraries
> > > are doing. And the parallax examples as well, BTW...
> >
> > Ok, I must have been really tired... because I remember this not
> > working.  And was really unhappy about it.  We're talking about cutting
> > sx!=0,sy!=0,sw,sh to dx,dy here right?
> 
> Yep.
> 
> 
> > When I tried only the width and height of the source only seemed to
> > work and the origin x,y were ignored.  If I WAS just really tired, this
> > is a great thing.
> 
> Were you perhaps using calculated values for sx, sy? It's pretty easy to 
> end up with the wrong sign, which would explain why nothing appeared to 
> happen... :-)
Nope, I'm just a retard. *sigh*

Bless you good man.  You're my best friend of the day.  I just got a
30-40 fps boost thanks to you. <G>

> 
> 
> //David Olofson --- Programmer, Reologica Instruments AB
> 
> .- M A I A -------------------------------------------------.
> |      Multimedia Application Integration Architecture      |
> | A Free/Open Source Plugin API for Professional Multimedia |
> `----------------------------> http://www.linuxdj.com/maia -'
> .- David Olofson -------------------------------------------.
> | Audio Hacker - Open Source Advocate - Singer - Songwriter |
> `-------------------------------------> http://olofson.net -'
> 
> _______________________________________________
> SDL mailing list
> SDL at libsdl.org
> http://www.libsdl.org/mailman/listinfo/sdl
-- 

End of Rant.

Jimmy
JimmysWorld.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 232 bytes
Desc: This is a digitally signed message part
URL: <http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20020123/fe12beb4/attachment.pgp>


More information about the SDL mailing list