nanogui: [nanogui] GrCopyArea
Subject:
[nanogui] GrCopyArea
From:
Ib ####@####.####
Date:
15 Aug 2001 15:14:13 -0000
Message-Id: <510819110362D211ABFD00A0C9A2BE4A012D447A@mail.visionik.dk>
Hi all
We are using GrCopyArea to draw pixmaps on the screen and this works out
very nicely. We would however like to not copy one specific colour.
This seems to be possible since GrCopyArea takes a ROP to pass to the
blitter, and in mwtypes.h we find the following definition:
/* 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?
> Ib Jørgensen Lead Technical Consultant
> --------------------------------------------------------------
> AGENCY.COM Interactive TV
>
> Islands Brygge 57, DK 2300 Copenhagen S
> T: +45 36 93 60 00 F: +45 36 93 30 01
> Direct: +45 36 93 60 88
> E: ####@####.#### www.agency.com
>
>