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

Public Member Functions

virtual void bind ()
 
virtual void setRasterState (RasterState const &state)
 
RasterState getRasterState () const
 
virtual void setBlendState (BlendState const &state)
 
BlendState getBlendState () const
 
virtual void setDepthStencilState (DepthStencilState const &state)
 
DepthStencilState getDepthStencilState () const
 

Protected Attributes

RasterState m_RasterState
 
BlendState m_BlendState
 
DepthStencilState m_DepthStencilState
 
bool m_IsRasterStateDirty
 
bool m_IsBlendStateDirty
 
bool m_IsDepthStencilStateDirty
 

Member Function Documentation

void Ocular::Graphics::RenderState::bind ( )
virtual

Sets the current RenderState.

Reimplemented in Ocular::Graphics::D3D11RenderState.

void Ocular::Graphics::RenderState::setBlendState ( BlendState const &  state)
virtual

Sets the BlendState settings for the application.

Note
Must call bind to enable any changes.
Parameters
[in]state
void Ocular::Graphics::RenderState::setDepthStencilState ( DepthStencilState const &  state)
virtual

Sets the DepthStencilState settings for the application.

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

Reimplemented in Ocular::Graphics::D3D11RenderState.

void Ocular::Graphics::RenderState::setRasterState ( RasterState const &  state)
virtual

Sets the RasterState settings for the application.

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

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