GteDXGIAdapter.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 
12 namespace gte
13 {
14 
15 // A simple wrapper for IDXGIAdapter1 objects and enumeration of them.
16 
18 {
19 public:
20  // Construction and destruction.
21  ~DXGIAdapter();
22  DXGIAdapter(DXGIAdapter const& object);
23  DXGIAdapter(IDXGIAdapter1* adapter = nullptr);
24 
25  // Assignment.
26  DXGIAdapter& operator=(DXGIAdapter const& object);
27 
28  // Member access.
29  IDXGIAdapter1* GetAdapter() const;
30  DXGI_ADAPTER_DESC1 const& GetDescription() const;
31  std::vector<DXGIOutput> const& GetOutputs() const;
32 
33  // Enumeration of adapters on a machine.
34  static void Enumerate(std::vector<DXGIAdapter>& adapters);
35 
36 private:
37  IDXGIAdapter1* mAdapter;
38  DXGI_ADAPTER_DESC1 mDescription;
39  std::vector<DXGIOutput> mOutputs;
40 };
41 
42 }
IDXGIAdapter1 * mAdapter
std::vector< DXGIOutput > mOutputs
#define GTE_IMPEXP
Definition: GTEngineDEF.h:63
DXGI_ADAPTER_DESC1 mDescription


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