home *** CD-ROM | disk | FTP | other *** search
/ Learn 3D Graphics Programming on the PC / Learn_3D_Graphics_Programming_on_the_PC_Ferraro.iso / rwwin / animate.h_ / animate.bin
Encoding:
Text File  |  1995-11-14  |  1.7 KB  |  63 lines

  1. /**********************************************************************
  2.  *
  3.  * File :     Animate.h
  4.  *
  5.  * Abstract : Structure definitions and function prototypes for animate.c
  6.  *
  7.  **********************************************************************
  8.  *
  9.  * This file is a product of Criterion Software Ltd.
  10.  *
  11.  * This file is provided as is with no warranties of any kind and is
  12.  * provided without any obligation on Criterion Software Ltd. or
  13.  * Canon Inc. to assist in its use or modification.
  14.  *
  15.  * Criterion Software Ltd. will not, under any
  16.  * circumstances, be liable for any lost revenue or other damages arising
  17.  * from the use of this file.
  18.  *
  19.  * Copyright (c) 1995 Criterion Software Ltd.
  20.  * All Rights Reserved.
  21.  *
  22.  * RenderWare is a trademark of Canon Inc.
  23.  *
  24.  ************************************************************************/
  25.  
  26. typedef struct {
  27.   char name[16];
  28.   int  start;
  29.   int  end;
  30.   int  react;       
  31. } TyAnimation;
  32.  
  33. typedef enum {
  34.     A_OFF,
  35.     A_ON,
  36.     A_DISSOLVE,
  37.     A_RESOLVE
  38. } EnAnimation;
  39.  
  40. typedef struct {
  41.     EnAnimation state;
  42.     RwReal      opacity;      
  43.     int         current_frame;
  44.     TyAnimation *current_animation;
  45.     TyAnimation *next_animation;     
  46.     int         animations;
  47.     TyAnimation *animation;        
  48. } TyAnimationData;
  49.  
  50. typedef struct {
  51.     int         frames;
  52.     RwMatrix4d  **frame;
  53. } TyFrameData;
  54.  
  55. int LoadAnimation(RwClump *clump, char *filename);
  56. void AnimateScene(void);
  57. RwClump *AnimateClump(RwClump *clump);
  58. void DefineAnimation(RwClump *clump, char *name, int start, int end, int react);
  59. void StartAnimation(RwClump *clump, char *name);
  60. void SetAnimationState(RwClump *clump, EnAnimation state);
  61. EnAnimation GetAnimationState(RwClump *clump);
  62.  
  63.