nanogui: [nanogui] GrCopyArea


Previous by date: 15 Aug 2001 16:22:29 -0000 Re: X-games, doom, hexen ..., Greg Haerr
Next by date: 15 Aug 2001 16:22:29 -0000 Re: X-games, doom, hexen ..., Greg Haerr
Previous in thread: 15 Aug 2001 16:22:29 -0000 Re: GrCopyArea, Jordan Crouse
Next in thread: 15 Aug 2001 16:22:29 -0000 Re: GrCopyArea, Jordan Crouse

Subject: Re: [nanogui] GrCopyArea
From: "Greg Haerr" ####@####.####
Date: 15 Aug 2001 16:22:29 -0000
Message-Id: <088201c125a5$888c1d40$3aba46a6@xmission.com>

/* copy src -> dst except for transparent color in src*/
#define MWROP_SRCTRANSCOPY 0x01000000L

Just what we need. Now our problem is to set the correct transparent color
in the appropriate struct. This should be a  MWIMAGEHDR. - but we only have
an id to the pixmap we are using - how do we get to the appropriate header?

-- As Jordan said, there aren't yet transparent blitters implemented
in the fblin*.c files, so this won't work yet.  The first fix is to implement
the ROP case in your fblinXXX.c driver.  Then, you should (once)
copy the image into a GrNewPixmap, and destroy the image id.  At that
point, you can use GrCopyArea with an ROP (since the pixmap is
based on a PSD), which will end up passing the ROP to the 
driver blit function.

Regards,

Greg




Previous by date: 15 Aug 2001 16:22:29 -0000 Re: X-games, doom, hexen ..., Greg Haerr
Next by date: 15 Aug 2001 16:22:29 -0000 Re: X-games, doom, hexen ..., Greg Haerr
Previous in thread: 15 Aug 2001 16:22:29 -0000 Re: GrCopyArea, Jordan Crouse
Next in thread: 15 Aug 2001 16:22:29 -0000 Re: GrCopyArea, Jordan Crouse


Powered by ezmlm-browse 0.20.