home *** CD-ROM | disk | FTP | other *** search
- /**********************************************************************
- *
- * File : Animate.h
- *
- * Abstract : Structure definitions and function prototypes for animate.c
- *
- **********************************************************************
- *
- * This file is a product of Criterion Software Ltd.
- *
- * This file is provided as is with no warranties of any kind and is
- * provided without any obligation on Criterion Software Ltd. or
- * Canon Inc. to assist in its use or modification.
- *
- * Criterion Software Ltd. will not, under any
- * circumstances, be liable for any lost revenue or other damages arising
- * from the use of this file.
- *
- * Copyright (c) 1995 Criterion Software Ltd.
- * All Rights Reserved.
- *
- * RenderWare is a trademark of Canon Inc.
- *
- ************************************************************************/
-
- typedef struct {
- char name[16];
- int start;
- int end;
- int react;
- } TyAnimation;
-
- typedef enum {
- A_OFF,
- A_ON,
- A_DISSOLVE,
- A_RESOLVE
- } EnAnimation;
-
- typedef struct {
- EnAnimation state;
- RwReal opacity;
- int current_frame;
- TyAnimation *current_animation;
- TyAnimation *next_animation;
- int animations;
- TyAnimation *animation;
- } TyAnimationData;
-
- typedef struct {
- int frames;
- RwMatrix4d **frame;
- } TyFrameData;
-
- int LoadAnimation(RwClump *clump, char *filename);
- void AnimateScene(void);
- RwClump *AnimateClump(RwClump *clump);
- void DefineAnimation(RwClump *clump, char *name, int start, int end, int react);
- void StartAnimation(RwClump *clump, char *name);
- void SetAnimationState(RwClump *clump, EnAnimation state);
- EnAnimation GetAnimationState(RwClump *clump);
-
-