home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / sys / sgi / graphics / 22 < prev    next >
Encoding:
Internet Message Format  |  1992-12-15  |  1.0 KB

  1. Path: sparky!uunet!zaphod.mps.ohio-state.edu!saimiri.primate.wisc.edu!ames!sgi!fido!holodeck.csd.sgi.com!aschaffe
  2. From: aschaffe@holodeck.csd.sgi.com (Allan Schaffer)
  3. Newsgroups: comp.sys.sgi.graphics
  4. Subject: Re: Xor line drawing
  5. Date: 15 Dec 1992 21:08:46 GMT
  6. Organization: Silicon Graphics, Inc., Mountain View, CA
  7. Lines: 26
  8. Message-ID: <1glhguINNbes@fido.asd.sgi.com>
  9. References: <BzB14n.5xJ@undergrad.math.waterloo.edu>
  10. NNTP-Posting-Host: holodeck.csd.sgi.com
  11.  
  12. bobbyc@surya.UWaterloo.CA (Bobby Chawla) said..
  13. >Could someone tell me how to draw a line on the SGI Indigos in 
  14. >Exclusive-Or mode?  
  15. >
  16. >I would like to draw lines, and if the user does not require them,
  17. >then be able to erase them efficiently.
  18. >
  19. >I was looking at the documentation and could not find it anywhere :-(.
  20.  
  21. check the manpage for "logicop(3G)"
  22.  
  23. Something like this should work:
  24.  
  25.     logicop (LO_XOR);
  26.     bgnline();
  27.         v3f(..);
  28.         v3f(..);
  29.     endline();
  30.     logicop (LO_SRC)   /* back to default */
  31.  
  32. Allan
  33. -- 
  34. Allan Schaffer
  35. aschaffe@sgi.com
  36. aschaffe@netcom.com
  37.  
  38.