home *** CD-ROM | disk | FTP | other *** search
/ Frozen Fish 1: Amiga / FrozenFish-Apr94.iso / bbs / cbm / os-include.lha / os-include / datatypes / animationclass.i < prev    next >
Text File  |  1993-10-15  |  5KB  |  176 lines

  1.     IFND    DATATYPES_ANIMATIONCLASS_I
  2. DATATYPES_ANIMATIONCLASS_I    SET    1
  3. **
  4. **  $VER: animationclass.i 40.0 (12.3.93)
  5. **  Includes Release 40.15
  6. **
  7. **  Interface definitions for DataType animation objects.
  8. **
  9. **  (C) Copyright 1992-1993 Commodore-Amiga, Inc.
  10. **    All Rights Reserved
  11. **
  12.  
  13.     IFND    UTILITY_TAGITEM_I
  14.     INCLUDE "utility/tagitem.i"
  15.     ENDC
  16.  
  17.     IFND    DATATYPES_DATATYPESCLASS_I
  18.     INCLUDE "datatypes/datatypesclass.i"
  19.     ENDC
  20.  
  21.     IFND    DATATYPES_PICTURECLASS_I
  22.     INCLUDE "datatypes/pictureclass.i"
  23.     ENDC
  24.  
  25.     IFND    DATATYPES_SOUNDCLASS_I
  26.     INCLUDE "datatypes/soundclass.i"
  27.     ENDC
  28.  
  29.     IFND    LIBRARIES_IFFPARSE_I
  30.     INCLUDE "libraries/iffparse.i"
  31.     ENDC
  32.  
  33. ;------------------------------------------------------------------------------
  34.  
  35. ANIMATIONDTCLASS    MACRO
  36.             DC.B    'animation.datatype',0
  37.             ENDM
  38.  
  39. ;------------------------------------------------------------------------------
  40.  
  41. ; Animation attributes
  42. ADTA_Dummy        equ    (DTA_Dummy+600)
  43. ADTA_ModeID        equ    PDTA_ModeID
  44. ADTA_KeyFrame        equ    PDTA_BitMap
  45.     ; (struct BitMap *) Key frame (first frame) bitmap
  46.  
  47. ADTA_ColorRegisters    equ    PDTA_ColorRegisters
  48. ADTA_CRegs        equ    PDTA_CRegs
  49. ADTA_GRegs        equ    PDTA_GRegs
  50. ADTA_ColorTable        equ    PDTA_ColorTable
  51. ADTA_ColorTable2    equ    PDTA_ColorTable2
  52. ADTA_Allocated        equ    PDTA_Allocated
  53. ADTA_NumColors        equ    PDTA_NumColors
  54. ADTA_NumAlloc        equ    PDTA_NumAlloc
  55.  
  56. ADTA_Remap        equ    PDTA_Remap
  57.     ; (BOOL) : Remap animation (defaults to TRUE)
  58.  
  59. ADTA_Screen        equ    PDTA_Screen
  60.     ; (struct Screen *) Screen to remap to
  61.  
  62. ADTA_NumSparse        equ    PDTA_NumSparse
  63.     ; (UWORD) Number of colors used for sparse remapping
  64.  
  65. ADTA_SparseTable    equ    PDTA_SparseTable
  66.     ; (UBYTE *) Pointer to a table of pen numbers indicating
  67.     ; which colors should be used when remapping the image.
  68.     ; This array must contain as many entries as there
  69.     ; are colors specified with ADTA_NumSparse
  70.  
  71. ADTA_Width        equ    (ADTA_Dummy+1)
  72. ADTA_Height        equ    (ADTA_Dummy+2)
  73. ADTA_Depth        equ    (ADTA_Dummy+3)
  74. ADTA_Frames        equ    (ADTA_Dummy+4)
  75.     ; (ULONG) Number of frames in the animation
  76.  
  77. ADTA_Frame        equ    (ADTA_Dummy+5)
  78.     ; (ULONG) Current frame
  79.  
  80. ADTA_FramesPerSecond    equ    (ADTA_Dummy+6)
  81.     ; (ULONG) Frames per second
  82.  
  83. ADTA_FrameIncrement    equ    (ADTA_Dummy+7)
  84.     ; (LONG) Amount to change frame by when fast forwarding or
  85.     ; rewinding.  Defaults to 10.
  86.  
  87. ; Sound attributes
  88. ADTA_Sample        equ    SDTA_Sample
  89. ADTA_SampleLength    equ    SDTA_SampleLength
  90. ADTA_Period        equ    SDTA_Period
  91. ADTA_Volume        equ    SDTA_Volume
  92. ADTA_Cycles        equ    SDTA_Cycles
  93.  
  94. ;------------------------------------------------------------------------------
  95.  
  96. ID_ANIM        equ 'ANIM'
  97. ID_ANHD        equ 'ANHD'
  98. ID_DLTA        equ 'DLTA'
  99.  
  100. ;------------------------------------------------------------------------------
  101.  
  102.     STRUCTURE AnimHeader,0
  103.     UBYTE        ah_Operation
  104.     UBYTE        ah_Mask
  105.     UWORD        ah_Width
  106.     UWORD        ah_Height
  107.     WORD        ah_Left
  108.     WORD        ah_Top
  109.     ULONG        ah_AbsTime
  110.     ULONG        ah_RelTime
  111.     UBYTE        ah_Interleave
  112.     UBYTE        ah_Pad0
  113.     ULONG        ah_Flags
  114.     STRUCT        ah_Pad,16
  115.     LABEL AnimHeader_SIZEOF
  116.  
  117. ;------------------------------------------------------------------------------
  118. ;------------------------------------------------------------------------------
  119. ;------------------------------------------------------------------------------
  120.  
  121. ; Animation methods
  122. ADTM_Dummy        equ    $700
  123.  
  124. ADTM_LOADFRAME        equ    $701
  125.     ; Used to load a frame of the animation
  126.  
  127. ADTM_UNLOADFRAME    equ    $702
  128.     ; Used to unload a frame of the animation
  129.  
  130. ADTM_START        equ    $703
  131.     ; Used to start the animation
  132.  
  133. ADTM_PAUSE        equ    $704
  134.     ; Used to pause the animation (don't reset the timer)
  135.  
  136. ADTM_STOP        equ    $705
  137.     ; Used to stop the animation
  138.  
  139. ADTM_LOCATE        equ    $706
  140.     ; Used to locate a frame in the animation (as set by a slider...)
  141.  
  142. ;------------------------------------------------------------------------------
  143.  
  144. ; ADTM_LOADFRAME, ADTM_UNLOADFRAME
  145.  
  146.     STRUCTURE adtFrame,0
  147.     ULONG         alf_MethodID
  148.     ULONG         alf_TimeStamp        ; Timestamp of frame to load
  149.  
  150.     ; The following fields are filled in by the ADTM_LOADFRAME method,
  151.     ; and are read-only for any other methods.
  152.  
  153.     ULONG         alf_Frame        ; Frame number
  154.     ULONG         alf_Duration        ; Duration of frame
  155.  
  156.     APTR          alf_BitMap        ; Loaded BitMap
  157.     APTR         alf_CMap        ; Colormap, if changed
  158.  
  159.     APTR         alf_Sample        ; Sound data (BYTE *)
  160.     ULONG         alf_SampleLength
  161.     ULONG         alf_Period
  162.  
  163.     APTR         alf_UserData        ; Used by load frame for extra data
  164.     LABEL adtFrame_SIZEOF
  165.  
  166.  
  167. ; ADTM_START, ADTM_PAUSE, ADTM_STOP, ADTM_LOCATE
  168.     STRUCTURE adtStart,0
  169.     ULONG         asa_MethodID;
  170.     ULONG         asa_Frame;        ; Frame # to start at
  171.     LABEL adtStart_SIZEOF
  172.  
  173. ;------------------------------------------------------------------------------
  174.  
  175.     ENDC    ; DATATYPES_ANIMATIONCLASS_I
  176.