Article View: comp.sys.amiga.tech
Article #11744An Appeal to the Blitter Gods
From: Alexander Hinds
Date: Thu, 09 Mar 1989 15:45
Date: Thu, 09 Mar 1989 15:45
33 lines
1652 bytes
1652 bytes
A few weeks ago, I posted a message about blitting part of a
bitmap from a source to a destination, leaving out color 14 in the
destination bitmap. Mr. Randall Jessup of Commodore posted some pseudo
code, to help. However, I'm totally stuck. I've tried many different
ways. My walls are covered in blood. I would be forever indebted to
anybody who could send me some CODE that would accomplish the following:
void DoSprite(src,dest,x,y,width,height,destX,destY,color)
struct BitMap *src, /*source bitmap*/
*dest; /*destination*/
long x,y; /*starting x,y location*/
long destX,destY; /*destination location*/
long width, height; /*width and height of block*/
int color; /*color to mask out*/
{......
.....
}
My routine seems to make the mask in the destination correctly, but it
never blits selectively to the destination. ie. All the colors always
end up in the destination.
Please, please, please, does somebody have code that works to do the
above, or something similar?
I'd be forever indebted. Personal mail would be best, since our news
feed is sporatic at best. Thanks in advance.
Alexander Hinds
ahinds@hvrford :USENET
A_HINDS@HVRFORD :BITNET, much better address!!!!!
Technical Details
Message-ID:
<515@hvrunix.UUCP>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!bloom-beacon!apple!oliveb!amiga!cbmvax!vu-vlsi!hvrunix!ahindsShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!bloom-beacon!apple!oliveb!amiga!cbmvax!vu-vlsi!hvrunix!ahinds From: ahinds@hvrunix.UUCP (Alexander Hinds) Newsgroups: comp.sys.amiga.tech Subject: An Appeal to the Blitter Gods Keywords: Help me again, please! Message-ID: <515@hvrunix.UUCP> Date: 9 Mar 89 15:45:33 GMT Organization: Haverford College, Haverford, PA Lines: 33