home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / msdn_vcb / samples / vc98 / sdk / graphics / directx / pplane / d3dscene.h < prev    next >
C/C++ Source or Header  |  1997-07-14  |  2KB  |  67 lines

  1. #ifndef D3DSCENE_H
  2. #define D3DSCENE_H
  3. /*
  4. **-----------------------------------------------------------------------------
  5. **  File:       D3DScene.h
  6. **  Purpose:    Sample D3D Scene Management code
  7. **  Notes:
  8. **
  9. **  Copyright (c) 1995 - 1997 by Microsoft, all rights reserved
  10. **-----------------------------------------------------------------------------
  11. */
  12.  
  13. /*
  14. **-----------------------------------------------------------------------------
  15. **  Include files
  16. **-----------------------------------------------------------------------------
  17. */
  18.  
  19. #include "Common.h"
  20. #include "D3DWin.h"
  21.  
  22.  
  23. /*
  24. **-----------------------------------------------------------------------------
  25. **  Classes
  26. **-----------------------------------------------------------------------------
  27. */
  28.  
  29. /*
  30. **-----------------------------------------------------------------------------
  31. **  Name:    D3DScene
  32. **  Purpose:
  33. **-----------------------------------------------------------------------------
  34. */
  35.  
  36. class D3DScene {
  37. private:
  38. protected:
  39.     // Data
  40.     LPD3DWindow lpd3dWindow;        // Associated D3D Window
  41.  
  42. public:
  43.  
  44.     D3DScene ();
  45.     ~D3DScene ();
  46.  
  47.     HRESULT Init (LPD3DWindow lpd3dWin);
  48.     HRESULT Fini (void);
  49.  
  50.     HRESULT InitViewport (void);
  51.     HRESULT FiniViewport (void);
  52.  
  53.     HRESULT Render (void);
  54.     HRESULT Restore (void);
  55.  
  56. }; // End class D3DScene
  57.  
  58.  
  59. /*
  60. **-----------------------------------------------------------------------------
  61. **  End of File
  62. **-----------------------------------------------------------------------------
  63. */
  64. #endif // End D3DSCENE_H
  65.  
  66.  
  67.