home *** CD-ROM | disk | FTP | other *** search
/ Game Audio Programming / GameAudioProgramming.iso / Extras / Sensaura / SDK1.0 / data1.cab / Example_Files / DS3DDemo / Source / cd3drm.h < prev    next >
Encoding:
C/C++ Source or Header  |  2000-06-13  |  1.5 KB  |  57 lines

  1. /*
  2.     Company:            Sensaura
  3.     Copyright:          (C) 1998
  4.  
  5.     File Name:            cd3drm.h
  6.     File Description:    Header file for declaration of Direct3DRMObject class
  7.     Author:                Adam Philp
  8.     File Version:        1.01.000
  9.     Last Update:        02-DEC-98
  10.  
  11.     Target Compiler:    Microsoft Visual C++ Version 5.0
  12. */
  13.  
  14. #ifndef __cd3drm_h                        // Sentry, use file only if it's not already included
  15. #define __cd3drm_h
  16.  
  17. ///////////////////////    Included files ////////////////////////////////////////////////////////////
  18.  
  19. #include <d3drmwin.h>                    // Direct3DRMWinDevice declaration 
  20.  
  21. ///////////////////////    Class declarations ////////////////////////////////////////////////////////
  22.  
  23. /*
  24.     Class:                Direct3DRMObject
  25.     Description:        Supports an IDirect3DRM object rendered in a Window
  26. */
  27.  
  28. class Direct3DRMObject
  29. {
  30. public:                                    // Public constructor & destructor
  31.     Direct3DRMObject(D3DVALUE);    
  32.     virtual ~Direct3DRMObject();
  33.  
  34. public:                                    // Public member functions
  35.     bool Create(HWND);
  36.     void Release();
  37.     bool Resize(int, int);
  38.  
  39. public:                                    // Public data members
  40.     LPDIRECT3DRM2        m_pD3DRM;
  41.     LPDIRECT3DRMDEVICE2    m_pDevice;     
  42.     D3DRMCOLORMODEL        m_Model;        
  43.     D3DRMRENDERQUALITY    m_Quality;
  44.     LPDIRECT3DRMFRAME2    m_pScene;
  45.  
  46.     D3DVALUE            m_BackDistance;
  47.  
  48. private:                                // Private member functions
  49.     LPGUID FindDirect3DDevice();
  50.     DWORD BitsPerPixelToDDBitDepth(int);
  51.  
  52. private:                                // Private data members
  53.     LPDIRECTDRAWCLIPPER    m_pDDClipper;
  54. };
  55.  
  56. #endif                                    // End of sentry __cd3drm_h
  57.