home *** CD-ROM | disk | FTP | other *** search
/ NEXT Generation 27 / NEXT27.iso / pc / demos / emperor / dx3.exe / SDK / SAMPLES / MISC / RMDEMO.H < prev    next >
C/C++ Source or Header  |  1996-08-28  |  1KB  |  52 lines

  1. /*==========================================================================
  2.  *
  3.  *  Copyright (C) 1995, 1996 Microsoft Corporation. All Rights Reserved.
  4.  *
  5.  *  File: rmdemo.h
  6.  *
  7.  ***************************************************************************/
  8. #ifndef __RMDEMO_H__
  9. #define __RMDEMO_H__
  10.  
  11. #include <d3drmwin.h>
  12. #include <d3drm.h>
  13. #include "rmerror.h"
  14.  
  15. #undef RELEASE
  16. #ifdef __cplusplus
  17. #define RELEASE(x) if (x != NULL) {x->Release(); x = NULL;}
  18. #else
  19. #define RELEASE(x) if (x != NULL) {x->lpVtbl->Release(x); x = NULL;}
  20. #endif
  21.  
  22. #ifdef __cplusplus
  23. extern "C" {
  24. #endif
  25.     /*
  26.      * A copy of LPDIRECT3DRM for use by the examples.
  27.      */
  28.     extern LPDIRECT3DRM lpD3DRM;
  29.     /*
  30.      * Builds the scene.
  31.      */
  32.     BOOL BuildScene(LPDIRECT3DRMDEVICE dev, LPDIRECT3DRMVIEWPORT view, LPDIRECT3DRMFRAME scene,
  33.                         LPDIRECT3DRMFRAME camera);
  34.  
  35.     /*
  36.      * Allows each example to begin with different defaults
  37.      */
  38.     typedef struct Defaultstag {
  39.         BOOL bNoTextures;
  40.         BOOL bResizingDisabled;
  41.         BOOL bConstRenderQuality;
  42.         char Name[50];
  43.     } Defaults;
  44.     void OverrideDefaults(Defaults* defaults);
  45.  
  46. #ifdef __cplusplus
  47. };
  48. #endif
  49.  
  50. #endif  //__RMDEMO_H__
  51.  
  52.