Mail Archives: djgpp/1998/01/14/15:21:25
Nils van den Heuvel writes:
>Can i put a .jpg file in an allegro datafile and load it with
>load_jpeg()???? (I've got a library that works with allegro that does
>this)... Because when i did this it couldn't load the .jpg file...
If the JPEG library uses the Allegro PACKFILE routines, you can use a
name of the form "datafilename.dat#objectname" to read directly from it.
But I suspect it will be using the normal C library file functions, in
which case it cannot read from a datafile object.
--
Shawn Hargreaves - shawn AT talula DOT demon DOT co DOT uk - http://www.talula.demon.co.uk/
"Pigs use it for a tambourine" - Frank Zappa
- Raw text -