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