home *** CD-ROM | disk | FTP | other *** search
/ The Net: Ultimate Internet Guide / WWLCD1.ISO / pc / directx2 / sdk / samples / rockem / rm.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-05-28  |  908 b   |  41 lines

  1. /*==========================================================================
  2.  *
  3.  *  Copyright (C) 1995, 1996 Microsoft Corporation. All Rights Reserved.
  4.  *
  5.  *  File: rm.h
  6.  *
  7.  ***************************************************************************/
  8.  
  9. #ifndef __RM_H_
  10. #define __RM_H_
  11.  
  12. // Includes....
  13. #include "d3drmwin.h"
  14.  
  15. // Defines....
  16. #define NUM_DEBRIS      25
  17. #define DEBRIS_LIFE     75
  18. #define NUM_HIT_DEBRIS  4
  19.  
  20. // Structures
  21. struct Debris
  22. {
  23.     LPDIRECT3DRMFRAME           m_pFrame;
  24.     LPDIRECT3DRMMESHBUILDER     m_pMeshBuilder;
  25.     BOOL                        m_bInUse;
  26.     D3DVECTOR                   m_vel;
  27.     D3DVECTOR                   m_acc;
  28.     int                         m_life;
  29. };
  30.  
  31. // Prototypes....
  32. BOOL InitScene();
  33. void TermScene();
  34.  
  35. BOOL RenderScene();
  36.  
  37. HRESULT LoadTextures(char *sName, void *pArg, LPDIRECT3DRMTEXTURE *hTexture);
  38.  
  39. #endif
  40.  
  41.