CmD3D9Driver.h 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. /*
  2. -----------------------------------------------------------------------------
  3. This source file is part of OGRE
  4. (Object-oriented Graphics Rendering Engine)
  5. For the latest info, see http://www.ogre3d.org/
  6. Copyright (c) 2000-2011 Torus Knot Software Ltd
  7. Permission is hereby granted, free of charge, to any person obtaining a copy
  8. of this software and associated documentation files (the "Software"), to deal
  9. in the Software without restriction, including without limitation the rights
  10. to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
  11. copies of the Software, and to permit persons to whom the Software is
  12. furnished to do so, subject to the following conditions:
  13. The above copyright notice and this permission notice shall be included in
  14. all copies or substantial portions of the Software.
  15. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  16. IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  17. FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
  18. AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
  19. LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
  20. OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
  21. THE SOFTWARE.
  22. -----------------------------------------------------------------------------
  23. */
  24. #ifndef __D3D9DRIVER_H__
  25. #define __D3D9DRIVER_H__
  26. #include "CmD3D9Prerequisites.h"
  27. #include "CmString.h"
  28. namespace CamelotEngine
  29. {
  30. class D3D9VideoModeList;
  31. class D3D9VideoMode;
  32. class _OgreD3D9Export D3D9Driver
  33. {
  34. public:
  35. // Constructors
  36. D3D9Driver(); // Default
  37. D3D9Driver( const D3D9Driver &ob ); // Copy
  38. D3D9Driver( unsigned int adapterNumber,
  39. const D3DCAPS9& deviceCaps,
  40. const D3DADAPTER_IDENTIFIER9& adapterIdentifer,
  41. const D3DDISPLAYMODE& desktopDisplayMode);
  42. ~D3D9Driver();
  43. const D3DCAPS9& getD3D9DeviceCaps () const { return mD3D9DeviceCaps; }
  44. String DriverName () const;
  45. String DriverDescription () const;
  46. unsigned int getAdapterNumber () const { return mAdapterNumber; }
  47. const D3DADAPTER_IDENTIFIER9& getAdapterIdentifier() const { return mAdapterIdentifier; }
  48. const D3DDISPLAYMODE& getDesktopMode () const { return mDesktopDisplayMode; }
  49. D3D9VideoModeList* getVideoModeList ();
  50. private:
  51. // Adapter number.
  52. unsigned int mAdapterNumber;
  53. // Device caps.
  54. D3DCAPS9 mD3D9DeviceCaps;
  55. // Adapter identifier
  56. D3DADAPTER_IDENTIFIER9 mAdapterIdentifier;
  57. // Desktop display mode.
  58. D3DDISPLAYMODE mDesktopDisplayMode;
  59. // Video modes list.
  60. D3D9VideoModeList* mpVideoModeList;
  61. };
  62. }
  63. #endif