18 #ifndef __H__OCULAR_GRAPHICS_D3D11_RENDER_STATE__H__
19 #define __H__OCULAR_GRAPHICS_D3D11_RENDER_STATE__H__
21 #include "Graphics/RenderState/RenderState.hpp"
48 virtual void bind()
override;
51 ID3D11RasterizerState* getD3DRasterizerState();
52 ID3D11DepthStencilState* getD3DDepthStencilState();
53 ID3D11BlendState* getD3DBlendState();
55 D3D11_PRIMITIVE_TOPOLOGY getD3DPrimitiveTopology();
59 bool createD3DRasterizerState();
60 bool createD3DDepthStencilState();
61 bool createD3DBlendState();
63 D3D11_RASTERIZER_DESC createRenderStateDescr();
64 D3D11_DEPTH_STENCIL_DESC createDepthStencilStateDescr();
65 D3D11_BLEND_DESC createBlendStateDescr();
67 D3D11_BLEND convertBlendType(BlendType type)
const;
68 D3D11_BLEND_OP convertBlendEquation(BlendEquation equation)
const;
69 D3D11_STENCIL_OP convertStencilOperation(StencilOperation operation)
const;
70 D3D11_COMPARISON_FUNC convertDepthStencilComparison(DepthStencilComparison comparison)
const;
74 ID3D11Device* m_D3DDevice;
75 ID3D11DeviceContext* m_D3DDeviceContext;
76 ID3D11RasterizerState* m_D3DRasterizerState;
77 ID3D11DepthStencilState* m_D3DDepthStencilState;
78 ID3D11BlendState* m_D3DBlendState;
79 D3D11_PRIMITIVE_TOPOLOGY m_D3DPrimitiveTopology;
virtual void setDepthStencilState(DepthStencilState const &state) override
Definition: D3D11RenderState.cpp:108
Definition: D3D11RenderState.hpp:41
Note: Once this library is made dynamic, this will no longer be needed.
Definition: Common.hpp:70
Definition: RenderState.hpp:42
Definition: DepthStencilState.hpp:113
virtual void bind() override
Definition: D3D11RenderState.cpp:68