The SDL forums have moved to discourse.libsdl.org.
This is just a read-only archive of the previous forums, to keep old links working.


SDL Forum Index
SDL
Simple Directmedia Layer Forums
About loading images from datafiles.
Lz
Guest

Hello,

I'd really appreciate if anyone could tell me a way of loading
archives from a data file.

I mean, i'll have a file and i'll be able to read it, so i'd like a
way of drawing RGB sdl surfaces from first pixel to last pixel... i
have searched in the headers and no functions seems to do that... as
i'm even unable to draw to an auxiliar surface with blitsurface, and
then copy that surface to videosurface with blitsurface again...

Thanks you in advance for your help! :)

--
Lz (elezeta at gmail.com).
http://elezeta.bounceme.net
About loading images from datafiles.
Gabriel
Guest

Quote:
I'd really appreciate if anyone could tell me a way of loading
archives from a data file.

You need to use RWOps. It's an input/output abstraction that you can
pass to the loading functions and therefore load the data from any
source you may want.

--
Gabriel Gambetta
Mystery Studio - http://www.mysterystudio.com
Gabriel on Graphics - http://gabrielongraphics.blogspot.com
About loading images from datafiles.
Lz
Guest

Hmm thanks you :)

It's working now, but it gives me some problem when crosscompiling for
windows... i'll have to take a deeper look at it.

Thanks again :)

On 1/7/06, Gabriel <mystml at adinet.com.uy> wrote:
Quote:
Quote:
I'd really appreciate if anyone could tell me a way of loading
archives from a data file.

You need to use RWOps. It's an input/output abstraction that you can
pass to the loading functions and therefore load the data from any
source you may want.

--
Gabriel Gambetta
Mystery Studio - http://www.mysterystudio.com
Gabriel on Graphics - http://gabrielongraphics.blogspot.com


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



--
Lz (elezeta at gmail.com).
http://elezeta.bounceme.net