Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!ames!decwrl!labrea!polya!rokicki From: rokicki@polya.Stanford.EDU (Tomas G. Rokicki) Newsgroups: comp.sys.amiga.tech Subject: Re: blitting bitmaps Keywords: How? Message-ID: <6455@polya.Stanford.EDU> Date: 30 Jan 89 11:05:05 GMT References: <503@hvrunix.UUCP> Organization: Stanford University Lines: 15 In article <503@hvrunix.UUCP>, ahinds@hvrunix.UUCP (Alexander Hinds) writes: > I'm involved in a game port, and I need to be able to blit > bitmaps (or rasters). The problem is that I want to copy a whole > source BitMap, except for color 14 to a destination BitMap. The RKM's > weren't too clear on how or if this can be done. You don't mention if you want it to work on windows or screens. But, in any case, first you want to create a mask that tells what portion of the bitmap is color 14. This will take two blits for 4-5 planes. Then, you want to do a copy blit using this as a mask. Are you going through the standard graphics library, or are you driving the blitter yourself? The real question is, do you want layers or not? Let me know and I'll give you the appropriate functions . . . -tom