Classes
clanD3D Display

## Classes
class | clan::D3DTarget
| Display target for clanDisplay. More...

## Attributes
static bool | clan::D3DTarget::is_current ()
| Returns true if this display target is the current target. More...

## Operations
static void | clan::D3DTarget::enable ()
| Enable this target. More...
static ID3D11Texture2D * | clan::D3DTarget::get_texture2d_handle (const GraphicContext &gc, const Texture &texture)
| Returns the Direct3D handle used by the texture object. More...
static ID3D11Texture2D * | clan::D3DTarget::get_texture2d_handle (const GraphicContext &gc, const PixelBuffer &pixel_buffer)
| Returns the Direct3D handle used by the pixel buffer object. More...
static ID3D11Texture2D * | clan::D3DTarget::get_texture2d_handle (const GraphicContext &gc, const RenderBuffer &render_buffer)
| Returns the Direct3D handle used by the render buffer object. More...
static ID3D11Buffer * | clan::D3DTarget::get_buffer_handle (const GraphicContext &gc, const VertexArrayBuffer &buffer)
| Returns the Direct3D handle used by the buffer object. More...
static ID3D11Buffer * | clan::D3DTarget::get_buffer_handle (const GraphicContext &gc, const ElementArrayBuffer &buffer)
| Returns the Direct3D handle used by the buffer object. More...
static ID3D11Buffer * | clan::D3DTarget::get_buffer_handle (const GraphicContext &gc, const UniformBuffer &buffer)
| Returns the Direct3D handle used by the buffer object. More...
static ID3D11ShaderResourceView * | clan::D3DTarget::get_srv_handle (const GraphicContext &gc, const Texture &texture)
| Returns the Direct3D shader resource view handle used by the texture object. More...
static ID3D11Device * | clan::D3DTarget::get_device_handle (const GraphicContext &gc)
| Returns the Direct3D device handle used by the graphic context. More...
static ID3D11DeviceContext * | clan::D3DTarget::get_device_context_handle (const GraphicContext &gc)
| Returns the Direct3D device context handle used by the graphic context. More...
static IDXGISwapChain * | clan::D3DTarget::get_swap_chain_handle (const GraphicContext &gc)
| Returns the Direct3D swap chain handle used by the graphic context. More...
static ID3D11RenderTargetView * | clan::D3DTarget::get_back_buffer_rtv_handle (const GraphicContext &gc)
| Returns the Direct3D render target view for the swap chain back buffer. More...
static void | clan::D3DTarget::throw_if_failed (const char *text, HRESULT result)
| Throws an exception with the specified text if the passed result is an error condition. More...
static void | clan::D3DTarget::set_current ()
| Set this display target to be the current target. More...

## Implementation
class | clan::D3DTarget::SetupD3D_Impl
| clan::D3DTarget::D3DTarget ()
| Constructs a D3DTarget target. More...
| clan::D3DTarget::~D3DTarget ()

## Detailed Description

## Function Documentation

clan::D3DTarget::D3DTarget | ( |  | ) |

Constructs a D3DTarget target.

clan::D3DTarget::~D3DTarget | ( |  | ) |

static void clan::D3DTarget::enable | ( |  | ) |
| static

Enable this target.

static ID3D11RenderTargetView* clan::D3DTarget::get_back_buffer_rtv_handle | ( | const GraphicContext & | gc | ) |
| static

Returns the Direct3D render target view for the swap chain back buffer.

The reference count on the COM object is not increased (AddRef is not called).

static ID3D11Buffer* clan::D3DTarget::get_buffer_handle | ( | const GraphicContext & | gc,
|  | const VertexArrayBuffer & | buffer
| ) |  |
| static

Returns the Direct3D handle used by the buffer object.

The reference count on the COM object is not increased (AddRef is not called).

static ID3D11Buffer* clan::D3DTarget::get_buffer_handle | ( | const GraphicContext & | gc,
|  | const ElementArrayBuffer & | buffer
| ) |  |
| static

Returns the Direct3D handle used by the buffer object.

The reference count on the COM object is not increased (AddRef is not called).

static ID3D11Buffer* clan::D3DTarget::get_buffer_handle | ( | const GraphicContext & | gc,
|  | const UniformBuffer & | buffer
| ) |  |
| static

Returns the Direct3D handle used by the buffer object.

The reference count on the COM object is not increased (AddRef is not called).

static ID3D11DeviceContext* clan::D3DTarget::get_device_context_handle | ( | const GraphicContext & | gc | ) |
| static

Returns the Direct3D device context handle used by the graphic context.

The reference count on the COM object is not increased (AddRef is not called).

static ID3D11Device* clan::D3DTarget::get_device_handle | ( | const GraphicContext & | gc | ) |
| static

Returns the Direct3D device handle used by the graphic context.

The reference count on the COM object is not increased (AddRef is not called).

static ID3D11ShaderResourceView* clan::D3DTarget::get_srv_handle | ( | const GraphicContext & | gc,
|  | const Texture & | texture
| ) |  |
| static

Returns the Direct3D shader resource view handle used by the texture object.

The reference count on the COM object is not increased (AddRef is not called).

static IDXGISwapChain* clan::D3DTarget::get_swap_chain_handle | ( | const GraphicContext & | gc | ) |
| static

Returns the Direct3D swap chain handle used by the graphic context.

The reference count on the COM object is not increased (AddRef is not called).

static ID3D11Texture2D* clan::D3DTarget::get_texture2d_handle | ( | const GraphicContext & | gc,
|  | const Texture & | texture
| ) |  |
| static

Returns the Direct3D handle used by the texture object.

The reference count on the COM object is not increased (AddRef is not called).

static ID3D11Texture2D* clan::D3DTarget::get_texture2d_handle | ( | const GraphicContext & | gc,
|  | const PixelBuffer & | pixel_buffer
| ) |  |
| static

Returns the Direct3D handle used by the pixel buffer object.

The reference count on the COM object is not increased (AddRef is not called).

static ID3D11Texture2D* clan::D3DTarget::get_texture2d_handle | ( | const GraphicContext & | gc,
|  | const RenderBuffer & | render_buffer
| ) |  |
| static

Returns the Direct3D handle used by the render buffer object.

The reference count on the COM object is not increased (AddRef is not called).

static bool clan::D3DTarget::is_current | ( |  | ) |
| static

Returns true if this display target is the current target.

This may change after a display window has been created

static void clan::D3DTarget::set_current | ( |  | ) |
| static

Set this display target to be the current target.

static void clan::D3DTarget::throw_if_failed | ( | const char * | text,
|  | HRESULT | result
| ) |  |
| static

Throws an exception with the specified text if the passed result is an error condition.

## Friends

friend class SetupD3D_Impl
| friend