home *** CD-ROM | disk | FTP | other *** search
- /**********************************************************************
- *
- * File : knight.h
- *
- * Abstract : Structure definitions and function prototypes for knight.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.
- *
- ************************************************************************/
- #include "resource.h"
-
- #ifdef DEFINE_GLOBAL
- #define ref
- #define preset(x) = x
- #else
- #define ref extern
- #define preset(x) /* x */
- #endif
-
- typedef enum {
- CAM_MAIN,
- CAM_KNIGHT1,
- CAM_KNIGHT2,
- CAM_FLY1,
- CAM_FLY2
- } EnCameraState;
-
- #define CAMERA_DISTANCE CREAL(-2.2)
-
- ref RwCamera *Camera preset(NULL);
- ref RwCamera *MainCamera preset(NULL);
- ref RwCamera *FlyCamera preset(NULL);
- ref RwScene *Scene preset(NULL);
- ref RwLight *Light preset(NULL);
- ref EnCameraState CameraState preset(CAM_MAIN);
- ref int InterActive preset(FALSE);
- ref RwClump *Knight1 preset(NULL);
- ref RwClump *Knight2 preset(NULL);
-
- RwClump *LoadClump(HWND window, char *filename);
- RwRaster *LoadBackdrop(HWND window, char *filename);
- void SetCameraState(HWND window, EnCameraState state);
- void AnimateCamera(HWND window);
- void RenderKnight(void);
-
- int LoadKnight(HWND windows, HINSTANCE inst, RwScene *scene);
- void ReactKnight(RwClump *clump, TyAnimation *a);
- char *RandomKnight(RwClump *clump);
- void SetBackdrop(RwCamera *c);
- void AnimateKnight(int knight, char *name);
-
- #ifdef WITH_SOUND
- void PlaySound(void);
- #endif
-
-