GteDXGIOutput.h
Go to the documentation of this file.
1 // David Eberly, Geometric Tools, Redmond WA 98052
2 // Copyright (c) 1998-2017
3 // Distributed under the Boost Software License, Version 1.0.
4 // http://www.boost.org/LICENSE_1_0.txt
5 // http://www.geometrictools.com/License/Boost/LICENSE_1_0.txt
6 // File Version: 3.0.0 (2016/06/19)
7 
8 #pragma once
9 
11 #include <vector>
12 
13 namespace gte
14 {
15 
16 // A simple wrapper for IDXGIOutput objects and enumeration of them.
17 
19 {
20 public:
21  // Construction and destruction.
22  ~DXGIOutput();
23  DXGIOutput(DXGIOutput const& object);
24  DXGIOutput(IDXGIOutput* output = nullptr);
25 
26  // Assignment.
27  DXGIOutput& operator=(DXGIOutput const& object);
28 
29  // Member access.
30  IDXGIOutput* GetOutput() const;
31  DXGI_OUTPUT_DESC const& GetDescription() const;
32 
33  // Queries for information about the output/monitor. The modes that
34  // support the format are returned, possibly an empty list. The returned
35  // HRESULT is one of the DXGI_ERROR values.
36  HRESULT GetDisplayModes(DXGI_FORMAT format,
37  std::vector<DXGI_MODE_DESC>& modeDescriptions);
38 
39  // Find a mode that matches as closely as possible the requested mode.
40  // The returned HRESULT is one of the DXGI_ERROR values.
41  HRESULT FindClosestMatchingMode(DXGI_MODE_DESC const& requested,
42  DXGI_MODE_DESC& closest);
43 
44 private:
45  IDXGIOutput* mOutput;
46  DXGI_OUTPUT_DESC mDescription;
47 };
48 
49 }
IDXGIOutput * mOutput
Definition: GteDXGIOutput.h:45
GLint GLint GLsizei GLint GLenum format
Definition: glcorearb.h:103
#define GTE_IMPEXP
Definition: GTEngineDEF.h:63
DXGI_OUTPUT_DESC mDescription
Definition: GteDXGIOutput.h:46


geometric_tools_engine
Author(s): Yijiang Huang
autogenerated on Thu Jul 18 2019 03:59:59