Gateware Libraries  6.3.A
Beta Build
GDirectX11Surface.h
1 #ifndef GDIRECTX11SURFACE_H
2 #define GDIRECTX11SURFACE_H
3 
15 #include "../../Interface/G_Core/GListener.h"
17 #include "../../Interface/G_System/GWindow.h"
18 #include "GGraphicsDefines.h"
19 
20 
22 namespace GW
23 {
25  namespace GRAPHICS
26  {
28  static const GUUIID GDirectX11SurfaceUUIID =
29  {
30  0xf787fd1f, 0x6218, 0x422a,{ 0xb3, 0x5a, 0x41, 0xb4, 0xb4, 0x8b, 0x75, 0xfc }
31  };
32 
41  {
42 
43  public:
44 
46 
53  virtual GReturn GetAspectRatio(float& _outRatio) = 0;
55 
62  virtual GReturn GetDevice(void** _outDevice) = 0;
64 
71  virtual GReturn GetContext(void** _outContext) = 0;
73 
80  virtual GReturn GetSwapchain(void** _outSwapchain) = 0;
82 
89  virtual GReturn GetRenderTarget(void** _outRenderTarget) = 0;
91 
100  virtual GReturn GetDepthStencilView(void** _outDepthStencilView) = 0;
101  }; // end GDirectX11Surface class
102 
104 
124  GATEWARE_EXPORT_IMPLICIT GReturn CreateGDirectX11Surface(SYSTEM::GWindow* _gWin, unsigned long long _initMask, GDirectX11Surface** _outSurface);
125 
126  } // end GRAPHICS namespace
127 } // end GW namespace
128 
129 #endif
GATEWARE_EXPORT_IMPLICIT GReturn CreateGDirectX11Surface(SYSTEM::GWindow *_gWin, unsigned long long _initMask, GDirectX11Surface **_outSurface)
Creates and outputs a new GDirectX11Surface object.
virtual GReturn GetSwapchain(void **_outSwapchain)=0
Returns the address of the current IDXGISwapChain.
Gateware Universally Unique Interface IDentifier.
Definition: GDefines.h:25
virtual GReturn GetDepthStencilView(void **_outDepthStencilView)=0
Returns the address of the current ID3D11DepthStencilView.
virtual GReturn GetAspectRatio(float &_outRatio)=0
Returns the aspect ratio for the current window.
virtual GReturn GetContext(void **_outContext)=0
Returns the address of the current ID3D11DeviceContext.
A library used to initialize, create, and manage a DirectX11 rendering context.
Definition: GDirectX11Surface.h:40
GReturn
Listing of common error codes returned by Gateware functions.
Definition: GDefines.h:53
The core namespace to which all Gateware interfaces/structures/defines must belong.
Definition: GAudio.h:20
virtual GReturn GetDevice(void **_outDevice)=0
Returns the address of the current ID3D11Device.
A thread-safe window creation and management library.
Definition: GWindow.h:76
A GListener Interface may be registered with a GBroadcaster interface to receive event notifications...
Definition: GListener.h:35
virtual GReturn GetRenderTarget(void **_outRenderTarget)=0
Returns the address of the current ID3D11RenderTargetView.