home *** CD-ROM | disk | FTP | other *** search
/ MacHack 1999 / MacHack 1999.toast / The Hacks / AltiVec Effect / EffectUtilities.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-03-13  |  1.3 KB  |  42 lines  |  [TEXT/CWIE]

  1. /*
  2.     File:        EffectUtilities.h
  3.  
  4.     Contains:    Tween utilities to help you write effects components
  5.  
  6.     Written by:    Tom Dowdy
  7.  
  8.     Copyright:    © 1997-1998 by Apple Computer, Inc., all rights reserved.
  9.     
  10. */
  11.  
  12.  
  13. typedef struct TweenContainerRecord
  14.     {
  15.     QTTweener                tween;
  16.     Handle                    tweenData;
  17.     Boolean                    readyToGo;
  18.     Boolean                    pad[3];
  19.     } TweenContainerRecord;
  20.  
  21. typedef struct TweenGlobals
  22.     {
  23.     QTAtomContainer                parameters;
  24.     QTAtomContainer                defaultParameters;
  25.     Boolean                        atLeastOneTweener;
  26.     Boolean                        pad[3];
  27.     } TweenGlobals;
  28.  
  29. OSErr CreateTweenRecord(
  30.             TweenGlobals *glob,             // input: our globals
  31.             TweenContainerRecord *pTween,     // input/output: tween record to initialize
  32.             OSType paramterType,            // input: where to find parameter (type)
  33.             long parameterID,                // input: where to find parameter (ID)
  34.             Size parameterSize,             // input: size of parameters
  35.             OSType dataType,                // input: type of tween, 0 for none
  36.             void *startValue,                // input: pointer or start value of default (for long size, just the data)
  37.             void *endValue,                    // input: pointer or end value of default (for long size, just the data)
  38.             TimeValue duration);            // input: duration of the tween
  39. void DisposeTweenRecord(TweenContainerRecord *pTween);
  40. OSErr InitializeTweenGlobals(TweenGlobals *pTweenGlobals, CodecDecompressParams *p);
  41. void DisposeTweenGlobals(TweenGlobals *pTweenGlobals);
  42.