Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!udel!haven.umd.edu!uvaarpa!murdoch!topaz.cs.Virginia.EDU!acl3k From: acl3k@topaz.cs.Virginia.EDU (Allan Christian Long) Newsgroups: comp.sys.sgi Subject: Opaque patterns Keywords: pattern, GL Message-ID: <1991May8.202442.21658@murdoch.acc.Virginia.EDU> Date: 8 May 91 20:24:42 GMT Sender: usenet@murdoch.acc.Virginia.EDU Reply-To: acl3k@topaz.cs.Virginia.EDU (Allan Christian Long) Followup-To: comp.sys.sgi Organization: University of Virginia Computer Science Department Lines: 21 Could someone please tell me how to do opaque patterns? Here's what I mean: I have defined a pattern with defpattern. When I draw filled primitives with that pattern set, pixels corresponding to 1's in the pattern get set to the current color and pixels corresponding to 0's in the pattern are unchanged. Sometimes this is what I want. BUT, sometimes I want the 1's in the pattern set to one color, and the 0's set to a different color. I have tried various things, such as drawing the primitive once with logicop(LO_NSRC) in one color and again with logicop(LO_SRC) in a different color, but I end up with the same thing as if I had just drawn it the second way. I guess I could invert the pattern myself and use two different patterns to get what I want, but I was hoping there would be an easier way. Thanks in advance for any help. A. Chris Long, Jr. acl3k@virginia.edu "You can't have everything. Where would you put it?" - Steven Wright