State
[Direct3D Utilities]

Collaboration diagram for State:

Classes

class  tk11::D3D11_Rasterizer_Desc
 Direct3D 11 Rasterizer state description. More...
class  tk11::D3D11_Depth_Stencil_Desc
 Direct3D 11 Depth/Stencil state description. More...

Functions

ID3D11DepthStencilState_ptr tk11::create_depth_stencil_state (ID3D11Device_ptr device, const D3D11_DEPTH_STENCIL_DESC &desc)
 Create Direct3D 11 depth/stencil state.
ID3D11RasterizerState_ptr tk11::create_rasterizer_state (ID3D11Device_ptr device, const D3D11_RASTERIZER_DESC &desc)
 Create Direct3D 11 rasterizer state.
ID3D11BlendState_ptr tk11::create_blend_state (ID3D11Device_ptr device, const D3D11_BLEND_DESC &desc)
 Create Direct3D 11 blend state.

Detailed Description

A collection of helper functions for working with state objects, such as blend state, rasterizer state and depth/stencil state.


Function Documentation

ID3D11BlendState_ptr tk11::create_blend_state ( ID3D11Device_ptr  device,
const D3D11_BLEND_DESC &  desc 
)

Create Direct3D 11 blend state.

Creates a blend state object based on a description. If creation of the object fails, an exception is thrown.

Parameters:
device Interface of Direct3D device
desc Description of the state object to create
Returns:
Interface of the created state object
Exceptions:
Direct3D_Error Thrown if object creation fails
Examples:
input.cpp.
ID3D11DepthStencilState_ptr tk11::create_depth_stencil_state ( ID3D11Device_ptr  device,
const D3D11_DEPTH_STENCIL_DESC &  desc 
)

Create Direct3D 11 depth/stencil state.

Creates a rasterizer state object based on a description. If creation of the object fails, an exception is thrown.

Parameters:
device Interface of Direct3D device
desc Description of the state object to create
Returns:
Interface of the created state object
Exceptions:
Direct3D_Error Thrown if object creation fails
See also:
D3D11_Depth_Stencil_Desc
ID3D11RasterizerState_ptr tk11::create_rasterizer_state ( ID3D11Device_ptr  device,
const D3D11_RASTERIZER_DESC &  desc 
)

Create Direct3D 11 rasterizer state.

Creates a depth/stencil state object based on a description. If creation of the object fails, an exception is thrown.

Parameters:
device Interface of Direct3D device
desc Description of the state object to create
Returns:
Interface of the created state object
Exceptions:
Direct3D_Error Thrown if object creation fails
See also:
D3D11_Rasterizer_Desc
Examples:
torus.cpp.
Tk11 Direct3D 11 Toolkit version 0.2 (SourceForge)
Copyright Florian Winter 2010 - 2010. Distributed under the Boost Software License, Version 1.0.
(See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
Generated on Sun Apr 11 20:23:00 2010 for Tk11 by  doxygen 1.6.3