nanogui: [nanogui] GrCopyArea


Previous by date: 15 Aug 2001 15:14:13 -0000 Re: how to run microwin with console!, Simon Wood
Next by date: 15 Aug 2001 15:14:13 -0000 Re: X-games, doom, hexen ..., Nikolaj Berntsen
Previous in thread:
Next in thread: 15 Aug 2001 15:14:13 -0000 Re: GrCopyArea, Jordan Crouse

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
> 
> 

Previous by date: 15 Aug 2001 15:14:13 -0000 Re: how to run microwin with console!, Simon Wood
Next by date: 15 Aug 2001 15:14:13 -0000 Re: X-games, doom, hexen ..., Nikolaj Berntsen
Previous in thread:
Next in thread: 15 Aug 2001 15:14:13 -0000 Re: GrCopyArea, Jordan Crouse


Powered by ezmlm-browse 0.20.