Mail Archives: djgpp/1999/07/19/16:45:12
Joe Dark wrote:
>
> I'm a little uncertain on what I need to do to display the RLE sprites from
> a .pcx file. The function:
>
> RLE_SPRITE get_rle_sprite(BITMAP *bitmap);
>
> My question would actually be on the BITMAP struct. What I tried to do was
> to pass the FILE handle to the BITMAP->dat variable, thinking that that is
> supposed to be the handle to the image data. I could be doing this
> completely wrong.. well, I'm pretty certain I am because I keep getting
> that lovely error SIGSEGV..
>
> I guess I'm just hoping for some clarification on what needs to go into the
> BITMAP struct for passing it to this function. As I said earlier I'm trying
> to display .pcx files which are RLE encoded bitmaps.
You can use `load_bitmap' to load a PCX file from disk and put it in a
BITMAP.
--
Nate Eldredge
nate AT cartsys DOT com
- Raw text -