32 #include "../Display/display_target.h"
43 class VertexArrayBuffer;
44 class ElementArrayBuffer;
Texture object class.
Definition: texture.h:104
friend class SetupD3D_Impl
Definition: d3d_target.h:139
static ID3D11Device * get_device_handle(const GraphicContext &gc)
Returns the Direct3D device handle used by the graphic context.
Vertex Array Buffer.
Definition: vertex_array_buffer.h:47
Display target for clanDisplay.
Definition: d3d_target.h:51
static ID3D11Texture2D * get_texture2d_handle(const GraphicContext &gc, const Texture &texture)
Returns the Direct3D handle used by the texture object.
static ID3D11DeviceContext * get_device_context_handle(const GraphicContext &gc)
Returns the Direct3D device context handle used by the graphic context.
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.
static ID3D11Buffer * get_buffer_handle(const GraphicContext &gc, const VertexArrayBuffer &buffer)
Returns the Direct3D handle used by the buffer object.
static ID3D11ShaderResourceView * get_srv_handle(const GraphicContext &gc, const Texture &texture)
Returns the Direct3D shader resource view handle used by the texture object.
Interface to drawing graphics.
Definition: graphic_context.h:258
static void enable()
Enable this target.
static ID3D11Texture2D * get_texture2d_handle(const GraphicContext &gc, const RenderBuffer &render_buffer)
Returns the Direct3D handle used by the render buffer object.
Element Array Buffer.
Definition: element_array_buffer.h:47
Display target for clanDisplay.
Definition: display_target.h:44
static ID3D11Buffer * get_buffer_handle(const GraphicContext &gc, const UniformBuffer &buffer)
Returns the Direct3D handle used by the buffer object.
Pixel data container.
Definition: pixel_buffer.h:69
static bool is_current()
Returns true if this display target is the current target.
static ID3D11Texture2D * get_texture2d_handle(const GraphicContext &gc, const PixelBuffer &pixel_buffer)
Returns the Direct3D handle used by the pixel buffer object.
static ID3D11RenderTargetView * get_back_buffer_rtv_handle(const GraphicContext &gc)
Returns the Direct3D render target view for the swap chain back buffer.
static ID3D11Buffer * get_buffer_handle(const GraphicContext &gc, const ElementArrayBuffer &buffer)
Returns the Direct3D handle used by the buffer object.
static void set_current()
Set this display target to be the current target.
D3DTarget()
Constructs a D3DTarget target.
static IDXGISwapChain * get_swap_chain_handle(const GraphicContext &gc)
Returns the Direct3D swap chain handle used by the graphic context.
Render-buffer object class.
Definition: render_buffer.h:48