uicore::D3DTarget Class Reference

Display target for uicoreDisplay. More...

#include <d3d_target.h>

Static Public Member Functions

static ID3D11RenderTargetView * back_buffer_rtv_handle (const GraphicContextPtr &gc)
 Returns the Direct3D render target view for the swap chain back buffer. More...
 
static ID3D11Buffer * buffer_handle (const GraphicContextPtr &gc, const VertexArrayBufferPtr &buffer)
 Returns the Direct3D handle used by the buffer object. More...
 
static ID3D11Buffer * buffer_handle (const GraphicContextPtr &gc, const ElementArrayBufferPtr &buffer)
 Returns the Direct3D handle used by the buffer object. More...
 
static ID3D11Buffer * buffer_handle (const GraphicContextPtr &gc, const UniformBufferPtr &buffer)
 Returns the Direct3D handle used by the buffer object. More...
 
static ID3D11DeviceContext * device_context_handle (const GraphicContextPtr &gc)
 Returns the Direct3D device context handle used by the graphic context. More...
 
static ID3D11Device * device_handle (const GraphicContextPtr &gc)
 Returns the Direct3D device handle used by the graphic context. More...
 
static bool is_current ()
 Returns true if this display target is the current target. More...
 
static void set_current ()
 Set this display target to be the current target. More...
 
static ID3D11ShaderResourceView * srv_handle (const GraphicContextPtr &gc, const TexturePtr &texture)
 Returns the Direct3D shader resource view handle used by the texture object. More...
 
static IDXGISwapChain * swap_chain_handle (const GraphicContextPtr &gc)
 Returns the Direct3D swap chain handle used by the graphic context. More...
 
static ID3D11Texture2D * texture2d_handle (const GraphicContextPtr &gc, const TexturePtr &texture)
 Returns the Direct3D handle used by the texture object. More...
 
static ID3D11Texture2D * texture2d_handle (const GraphicContextPtr &gc, const PixelBufferPtr &pixel_buffer)
 Returns the Direct3D handle used by the pixel buffer object. More...
 
static ID3D11Texture2D * texture2d_handle (const GraphicContextPtr &gc, const RenderBufferPtr &render_buffer)
 Returns the Direct3D handle used by the render buffer object. More...
 
static void throw_if_failed (const char *text, HRESULT result)
 Throws an exception with the specified text if the passed result is an error condition. More...
 

Detailed Description

Display target for uicoreDisplay.

Member Function Documentation

static ID3D11RenderTargetView* uicore::D3DTarget::back_buffer_rtv_handle ( const GraphicContextPtr 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* uicore::D3DTarget::buffer_handle ( const GraphicContextPtr gc,
const VertexArrayBufferPtr 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* uicore::D3DTarget::buffer_handle ( const GraphicContextPtr gc,
const ElementArrayBufferPtr 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* uicore::D3DTarget::buffer_handle ( const GraphicContextPtr gc,
const UniformBufferPtr 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* uicore::D3DTarget::device_context_handle ( const GraphicContextPtr 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* uicore::D3DTarget::device_handle ( const GraphicContextPtr 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 bool uicore::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 uicore::D3DTarget::set_current ( )
static

Set this display target to be the current target.

static ID3D11ShaderResourceView* uicore::D3DTarget::srv_handle ( const GraphicContextPtr gc,
const TexturePtr 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* uicore::D3DTarget::swap_chain_handle ( const GraphicContextPtr 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* uicore::D3DTarget::texture2d_handle ( const GraphicContextPtr gc,
const TexturePtr 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* uicore::D3DTarget::texture2d_handle ( const GraphicContextPtr gc,
const PixelBufferPtr 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* uicore::D3DTarget::texture2d_handle ( const GraphicContextPtr gc,
const RenderBufferPtr 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 void uicore::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.


The documentation for this class was generated from the following file: