Path: utzoo!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!uakari.primate.wisc.edu!dali.cs.montana.edu!milton!ogicse!pdxgate!parsely!percy!nosun!qiclab!baer From: baer@qiclab.scn.rain.com (Ken Baer) Newsgroups: comp.sys.mac.programmer Subject: Drawing in XOR with masking? Message-ID: <1991Mar7.190620.19609@qiclab.scn.rain.com> Date: 7 Mar 91 19:06:20 GMT Organization: SCN Research/Qic Laboratories of Tigard, Oregon. Lines: 26 I have a technical graphics question that I have not been able to get answered yet. I have only been working on the Mac for the last few months, but have done a lot of graphics programming on the Amiga (no derogatory comments please :-). I am trying to draw in XOR mode, but with plane masking, so I can draw in the color I want, and be able to XOR those colors. On the Amiga we were able to do with by using SetMask() with COMPLIMENT draw mode. I have, so far, been unable to find an equivalent on the Mac. I'm writing this for an interface for a 3D object modeller, which needs to use color for highlighting control points, so I need to use XOR for real time manipulation, but I need to have control over what colors I'm drawing in. So far, all of the examples of XOR I've seen are in B&W. I assume that there must be some other people out there doing what I'm trying to do. If you have some suggestions, or better yet, sample code, please e-mail it to me. This is a major problem right now (for this project), so any help is greatly appreciated. Thanks in advance! -Ken Baer. Hash Enterprises baer@qiclab.UUCP -- // -Ken Baer. Programmer/Animator, Hash Enterprises / Earthling \X/ Usenet: baer@qiclab.UUCP or PLink: KEN BAER "What?!? Sore again?" -- Bugs Bunny to Yosemity Sam