home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / sys / mac / programm / 22090 < prev    next >
Encoding:
Internet Message Format  |  1993-01-24  |  1.9 KB

  1. Path: sparky!uunet!olivea!hal.com!decwrl!waikato.ac.nz!ldo
  2. From: ldo@waikato.ac.nz (Lawrence D'Oliveiro, Waikato University)
  3. Newsgroups: comp.sys.mac.programmer
  4. Subject: Re: Color animation in After Dark...HELP!
  5. Message-ID: <1993Jan25.143720.13417@waikato.ac.nz>
  6. Date: 25 Jan 93 01:37:20 GMT
  7. References: <Jan21.055623.50848@yuma.ACNS.ColoState.EDU> <1993Jan21.200541.29437@hobbes.kzoo.edu>
  8. Organization: University of Waikato, Hamilton, New Zealand
  9. Lines: 34
  10.  
  11. In article <1993Jan21.200541.29437@hobbes.kzoo.edu>, k044477@hobbes.kzoo.edu (Jamie R. McCarthy) writes:
  12. > cantrell@lamar.ColoState.EDU (Carol Cantrell) writes:
  13. > Yep, there are three ways to get the Color Indices You Want up onto the
  14. > screen:
  15. >     (1) Set bit 14 in ctFlags;
  16. ...
  17. >
  18. > (1) won't work for you, as you say, because AD opens a port not a
  19. > palette.  (Actually, does it even do that?  Someone said it uses
  20. > SetStdProcs() to redirect QD calls to its own nefarious ends.  I don't
  21. > even want to think about that.)
  22.  
  23. No, I don't believe it's quite that bad. The documentation says it just opens
  24. a port.
  25.  
  26. I did encounter some strangeness with Randomizer and MultiModule--they seem
  27. to want to put other modules into their own little heaps, for no good reason
  28. that I could discern. Naturally I found ways to defeat this restrictive
  29. behaviour. ;-)
  30.  
  31. > Alternatively, you can build a GWorld using the screen's pmTable.  But
  32. > I'm not too familiar with GWorlds, so you're on your own there.
  33.  
  34. GWorlds are a piece of cake--honest. You can start using them with just
  35. a few calls: NewGWorld/LockPixels to create them, and DisposeGWorld to
  36. get rid of them. The only real change to your drawing code is to remember
  37. to use GetGWorld/SetGWorld to change drawing contexts, instead of GetPort/
  38. SetPort.
  39.  
  40. Oh yes--and never, *ever* leave the drawing context set to an offscreen
  41. GWorld when making a Toolbox call...
  42.  
  43. Lawrence
  44. author of "OURA QT" (the other freebie QuickTime movie player for After Dark)
  45.