IMG_Load()

Banzai!

Is it possible to hack IMG_Load() from SDL_image to work with file
descriptors instead of file names?

I’ve been browsing thru SDL and SDL_image sources and it seems that it
wouldn’t be so hard.

Anyone done that? (is this by any chance already implemented and I missed
it?)

David!---------------
Windows 95 - If they are working, something is terribly wrong.

Is it possible to hack IMG_Load() from SDL_image to work with file
descriptors instead of file names?

use IMG_Load_RW() (or IMG_LoadTyped_RW()). Raw descriptors aren’t recommended
for performance reasons but use a buffered layer (i.e. FILE*) instead

Is it possible to hack IMG_Load() from SDL_image to work with file
descriptors instead of file names?

use IMG_Load_RW() (or IMG_LoadTyped_RW()). Raw descriptors aren’t recommended
for performance reasons but use a buffered layer (i.e. FILE*) instead

Yes, thanks. I found it! :slight_smile:

David!On Sun, Dec 17, 2000 at 11:09:13PM +0100, Mattias Engdeg?rd wrote:

There’s no future in time travel.