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

  1. /**********************************************************************
  2.  *
  3.  * File :     knight.h
  4.  *
  5.  * Abstract : Structure definitions and function prototypes for knight.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. #include "resource.h"
  26.  
  27. #ifdef DEFINE_GLOBAL
  28. #define ref 
  29. #define preset(x) = x
  30. #else
  31. #define ref extern
  32. #define preset(x) /* x */
  33. #endif
  34.  
  35. typedef enum {
  36.     CAM_MAIN,
  37.     CAM_KNIGHT1,
  38.     CAM_KNIGHT2,
  39.     CAM_FLY1,
  40.     CAM_FLY2
  41. } EnCameraState;
  42.  
  43. #define CAMERA_DISTANCE CREAL(-2.2)
  44.  
  45. ref RwCamera *Camera preset(NULL);
  46. ref RwCamera *MainCamera preset(NULL);
  47. ref RwCamera *FlyCamera preset(NULL);
  48. ref RwScene *Scene preset(NULL);
  49. ref RwLight *Light preset(NULL);
  50. ref EnCameraState CameraState preset(CAM_MAIN);
  51. ref int InterActive preset(FALSE);
  52. ref RwClump *Knight1 preset(NULL);
  53. ref RwClump *Knight2 preset(NULL);
  54.  
  55. RwClump *LoadClump(HWND window, char *filename);
  56. RwRaster *LoadBackdrop(HWND window, char *filename);
  57. void SetCameraState(HWND window, EnCameraState state);
  58. void AnimateCamera(HWND window);
  59. void RenderKnight(void);
  60.  
  61. int LoadKnight(HWND windows, HINSTANCE inst, RwScene *scene);
  62. void ReactKnight(RwClump *clump, TyAnimation *a);
  63. char *RandomKnight(RwClump *clump);
  64. void SetBackdrop(RwCamera *c);
  65. void AnimateKnight(int knight, char *name);       
  66.  
  67. #ifdef WITH_SOUND
  68. void PlaySound(void);
  69. #endif
  70.  
  71.