Ocular Engine
Ocular::Graphics::D3D11RenderState Class Reference
Inheritance diagram for Ocular::Graphics::D3D11RenderState:
Ocular::Graphics::RenderState

Public Member Functions

 D3D11RenderState (ID3D11Device *device, ID3D11DeviceContext *context)
 
virtual void bind () override
 
virtual void setDepthStencilState (DepthStencilState const &state) override
 
ID3D11RasterizerState * getD3DRasterizerState ()
 
ID3D11DepthStencilState * getD3DDepthStencilState ()
 
ID3D11BlendState * getD3DBlendState ()
 
D3D11_PRIMITIVE_TOPOLOGY getD3DPrimitiveTopology ()
 
- Public Member Functions inherited from Ocular::Graphics::RenderState
virtual void setRasterState (RasterState const &state)
 
RasterState getRasterState () const
 
virtual void setBlendState (BlendState const &state)
 
BlendState getBlendState () const
 
DepthStencilState getDepthStencilState () const
 

Protected Member Functions

bool createD3DRasterizerState ()
 
bool createD3DDepthStencilState ()
 
bool createD3DBlendState ()
 
D3D11_RASTERIZER_DESC createRenderStateDescr ()
 
D3D11_DEPTH_STENCIL_DESC createDepthStencilStateDescr ()
 
D3D11_BLEND_DESC createBlendStateDescr ()
 
D3D11_BLEND convertBlendType (BlendType type) const
 
D3D11_BLEND_OP convertBlendEquation (BlendEquation equation) const
 
D3D11_STENCIL_OP convertStencilOperation (StencilOperation operation) const
 
D3D11_COMPARISON_FUNC convertDepthStencilComparison (DepthStencilComparison comparison) const
 

Protected Attributes

ID3D11Device * m_D3DDevice
 
ID3D11DeviceContext * m_D3DDeviceContext
 
ID3D11RasterizerState * m_D3DRasterizerState
 
ID3D11DepthStencilState * m_D3DDepthStencilState
 
ID3D11BlendState * m_D3DBlendState
 
D3D11_PRIMITIVE_TOPOLOGY m_D3DPrimitiveTopology
 
- Protected Attributes inherited from Ocular::Graphics::RenderState
RasterState m_RasterState
 
BlendState m_BlendState
 
DepthStencilState m_DepthStencilState
 
bool m_IsRasterStateDirty
 
bool m_IsBlendStateDirty
 
bool m_IsDepthStencilStateDirty
 

Member Function Documentation

void Ocular::Graphics::D3D11RenderState::bind ( )
overridevirtual

Sets the current RenderState.

Reimplemented from Ocular::Graphics::RenderState.

void Ocular::Graphics::D3D11RenderState::setDepthStencilState ( DepthStencilState const &  state)
overridevirtual

Sets the DepthStencilState settings for the application.

Note
Must call bind to enable any changes.
Parameters
[in]state

Reimplemented from Ocular::Graphics::RenderState.


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