CmD3D11VideoMode.h 824 B

1234567891011121314151617181920212223242526272829
  1. #pragma once
  2. #include "CmD3D11Prerequisites.h"
  3. namespace CamelotFramework
  4. {
  5. class CM_D3D11_EXPORT D3D11VideoMode
  6. {
  7. public:
  8. D3D11VideoMode();
  9. D3D11VideoMode(const D3D11VideoMode& ob);
  10. D3D11VideoMode(DXGI_OUTPUT_DESC d3ddm, DXGI_MODE_DESC modeDesc);
  11. ~D3D11VideoMode();
  12. UINT32 getWidth() const { return mModeDesc.Width; }
  13. UINT32 getHeight() const { return mModeDesc.Height; }
  14. DXGI_FORMAT getFormat() const { return mModeDesc.Format; }
  15. DXGI_RATIONAL getRefreshRate() const { return mModeDesc.RefreshRate; }
  16. UINT32 getColorDepth() const;
  17. DXGI_OUTPUT_DESC getDisplayMode() const { return mDisplayMode; }
  18. DXGI_MODE_DESC getModeDesc() const { return mModeDesc; }
  19. String getDescription() const;
  20. private:
  21. DXGI_OUTPUT_DESC mDisplayMode;
  22. DXGI_MODE_DESC mModeDesc;
  23. UINT32 modeNumber;
  24. };
  25. }