home *** CD-ROM | disk | FTP | other *** search
/ Learn 3D Graphics Programming on the PC / Learn_3D_Graphics_Programming_on_the_PC_Ferraro.iso / rwdos / danimate.h < prev    next >
Text File  |  1995-02-15  |  910b  |  38 lines

  1. typedef struct {
  2.   char name[16];
  3.   int  start;
  4.   int  end;
  5.   int  react;       
  6. } TyAnimation;
  7.  
  8. typedef enum {
  9.     A_OFF,
  10.     A_ON,
  11.     A_DISSOLVE,
  12.     A_RESOLVE
  13. } EnAnimation;
  14.  
  15. typedef struct {
  16.     EnAnimation state;
  17.     RwReal      opacity;      
  18.     int         current_frame;
  19.     TyAnimation *current_animation;
  20.     TyAnimation *next_animation;     
  21.     int         animations;
  22.     TyAnimation *animation;        
  23. } TyAnimationData;
  24.  
  25. typedef struct {
  26.     int         frames;
  27.     RwMatrix4d  **frame;
  28. } TyFrameData;
  29.  
  30. int LoadAnimation(RwClump *clump, char *filename);
  31. void AnimateScene(void);
  32. RwClump *AnimateClump(RwClump *clump);
  33. void DefineAnimation(RwClump *clump, char *name, int start, int end, int react);
  34. void StartAnimation(RwClump *clump, char *name);
  35. void SetAnimationState(RwClump *clump, EnAnimation state);
  36. EnAnimation GetAnimationState(RwClump *clump);
  37.  
  38.