#include <StateMachine.h>
Public Member Functions | |
| const State & | GetCurrentState () const |
| bool | Capture () |
| State | Backup () const |
| bool | Restore (const State &backup, State::Category state_category_flags=State::_1st_STD_VAL_STATES) |
| const ml7::Matrix4x4 & | GetWorldTransform () const |
| const ml7::Matrix4x4 & | GetViewTransform () const |
| const ml7::Matrix4x4 & | GetProjectionTransform () const |
| const D3DVIEWPORT9 & | GetViewport () const |
| const IDirect3DSurface9 * | GetColorRenderTarget () const |
| const IDirect3DSurface9 * | GetColorRenderTarget (unsigned index) const |
| const IDirect3DSurface9 * | GetDepthStencilTarget () const |
| unsigned long | GetFVF () const |
| unsigned long | GetRenderState (D3DRENDERSTATETYPE rst) const |
| unsigned long | GetTextureState (unsigned stage, D3DTEXTURESTAGESTATETYPE tss) const |
| unsigned long | GetSamplerState (unsigned stage, D3DSAMPLERSTATETYPE ss) const |
| float | GetRenderStateF (D3DRENDERSTATETYPE rst) const |
| float | GetTextureStateF (unsigned stage, D3DTEXTURESTAGESTATETYPE tss) const |
| float | GetSamplerStateF (unsigned stage, D3DSAMPLERSTATETYPE ss) const |
| const IDirect3DBaseTexture9 * | GetTexture (unsigned stage) const |
| const D3DMATERIAL9 & | GetMaterial () const |
| const IDirect3DVertexBuffer9 * | GetVertices () const |
| const IDirect3DVertexBuffer9 * | GetVertices (unsigned index) const |
| const IDirect3DIndexBuffer9 * | GetIndices () const |
| const IDirect3DVertexShader9 * | GetVertexShader () const |
| const IDirect3DPixelShader9 * | GetPixelShader () const |
| const IDirect3DVertexDeclaration9 * | GetVertexDeclaration () const |
| bool | SetWorldTransform (const ml7::Matrix4x4 &world) |
| bool | SetViewTransform (const ml7::Matrix4x4 &view) |
| bool | SetProjectionTransform (const ml7::Matrix4x4 &projection) |
| bool | SetViewport (const D3DVIEWPORT9 &viewport) |
| bool | SetColorRenderTarget (IDirect3DSurface9 *color_render_target) |
| bool | SetColorRenderTarget (unsigned index, IDirect3DSurface9 *color_render_target) |
| bool | SetDepthStencilTarget (IDirect3DSurface9 *depth_stencil_target) |
| bool | SetFVF (unsigned long fvf) |
| bool | SetRenderState (D3DRENDERSTATETYPE rst, unsigned long value) |
| bool | SetTextureState (unsigned stage, D3DTEXTURESTAGESTATETYPE tss, unsigned long value) |
| bool | SetSamplerState (unsigned stage, D3DSAMPLERSTATETYPE ss, unsigned long value) |
| bool | SetRenderStateF (D3DRENDERSTATETYPE rst, float value) |
| bool | SetTextureStateF (unsigned stage, D3DTEXTURESTAGESTATETYPE tss, float value) |
| bool | SetSamplerStateF (unsigned stage, D3DSAMPLERSTATETYPE ss, float value) |
| bool | SetTexture (unsigned stage, IDirect3DBaseTexture9 *texture) |
| bool | SetMaterial (const D3DMATERIAL9 &material) |
| bool | SetVertices (IDirect3DVertexBuffer9 *vertices, unsigned stride) |
| bool | SetVertices (unsigned index, IDirect3DVertexBuffer9 *vertices, unsigned stride) |
| bool | SetIndices (IDirect3DIndexBuffer9 *indices) |
| bool | SetVertexShader (IDirect3DVertexShader9 *vertex_shader) |
| bool | SetPixelShader (IDirect3DPixelShader9 *pixel_shader) |
| bool | SetVertexDeclaration (IDirect3DVertexDeclaration9 *vertex_decl) |
Public Attributes | |
| friend | RenderDevice |
Manages the state (render, texture and sampler states) of a render device.
| State xl7::direct3d::StateMachine::Backup | ( | ) | const |
Creates and returns a backup of the current state.
| bool xl7::direct3d::StateMachine::Capture | ( | ) |
Captures the current state from the hardware.
| const IDirect3DSurface9 * xl7::direct3d::StateMachine::GetColorRenderTarget | ( | ) | const |
Returns the current color render target.
| const IDirect3DSurface9 * xl7::direct3d::StateMachine::GetColorRenderTarget | ( | unsigned | index | ) | const |
Returns the current color render target.
| const State& xl7::direct3d::StateMachine::GetCurrentState | ( | ) | const [inline] |
Returns the current state.
| const IDirect3DSurface9 * xl7::direct3d::StateMachine::GetDepthStencilTarget | ( | ) | const |
Returns the current depth render target.
| unsigned long xl7::direct3d::StateMachine::GetFVF | ( | ) | const |
Returns the current flexible vertex format.
| const IDirect3DIndexBuffer9 * xl7::direct3d::StateMachine::GetIndices | ( | ) | const |
Returns the current index buffer.
| const D3DMATERIAL9 & xl7::direct3d::StateMachine::GetMaterial | ( | ) | const |
Returns the current material.
| const IDirect3DPixelShader9 * xl7::direct3d::StateMachine::GetPixelShader | ( | ) | const |
Returns the current pixel shader.
| const ml7::Matrix4x4 & xl7::direct3d::StateMachine::GetProjectionTransform | ( | ) | const |
Returns the current projection transform matrix.
| unsigned long xl7::direct3d::StateMachine::GetRenderState | ( | D3DRENDERSTATETYPE | rst | ) | const |
Returns the current value of a given render state.
| float xl7::direct3d::StateMachine::GetRenderStateF | ( | D3DRENDERSTATETYPE | rst | ) | const |
Returns the current (float) value of a given render state.
| unsigned long xl7::direct3d::StateMachine::GetSamplerState | ( | unsigned | stage, | |
| D3DSAMPLERSTATETYPE | ss | |||
| ) | const |
Returns the current value of a given sampler state.
| float xl7::direct3d::StateMachine::GetSamplerStateF | ( | unsigned | stage, | |
| D3DSAMPLERSTATETYPE | ss | |||
| ) | const |
Returns the current (float) value of a given sampler state.
| const IDirect3DBaseTexture9 * xl7::direct3d::StateMachine::GetTexture | ( | unsigned | stage | ) | const |
Returns the current texture of a given stage.
| unsigned long xl7::direct3d::StateMachine::GetTextureState | ( | unsigned | stage, | |
| D3DTEXTURESTAGESTATETYPE | tss | |||
| ) | const |
Returns the current value of a given texture stage state.
| float xl7::direct3d::StateMachine::GetTextureStateF | ( | unsigned | stage, | |
| D3DTEXTURESTAGESTATETYPE | tss | |||
| ) | const |
Returns the current (float) value of a given texture stage state.
| const IDirect3DVertexDeclaration9 * xl7::direct3d::StateMachine::GetVertexDeclaration | ( | ) | const |
Returns the current vertex declaration.
| const IDirect3DVertexShader9 * xl7::direct3d::StateMachine::GetVertexShader | ( | ) | const |
Returns the current vertex shader.
| const IDirect3DVertexBuffer9 * xl7::direct3d::StateMachine::GetVertices | ( | ) | const |
Returns the current vertex buffer.
| const IDirect3DVertexBuffer9 * xl7::direct3d::StateMachine::GetVertices | ( | unsigned | index | ) | const |
Returns the current vertex buffer.
| const D3DVIEWPORT9 & xl7::direct3d::StateMachine::GetViewport | ( | ) | const |
Returns the current viewport.
| const ml7::Matrix4x4 & xl7::direct3d::StateMachine::GetViewTransform | ( | ) | const |
Returns the current view transform matrix.
| const ml7::Matrix4x4 & xl7::direct3d::StateMachine::GetWorldTransform | ( | ) | const |
Returns the current world transform matrix.
| bool xl7::direct3d::StateMachine::Restore | ( | const State & | backup, | |
| State::Category | state_category_flags = State::_1st_STD_VAL_STATES | |||
| ) |
Restores a previously backed up state.
| bool xl7::direct3d::StateMachine::SetColorRenderTarget | ( | unsigned | index, | |
| IDirect3DSurface9 * | color_render_target | |||
| ) |
Sets the current color render target.
| bool xl7::direct3d::StateMachine::SetColorRenderTarget | ( | IDirect3DSurface9 * | color_render_target | ) |
Sets the current color render target.
| bool xl7::direct3d::StateMachine::SetDepthStencilTarget | ( | IDirect3DSurface9 * | depth_stencil_target | ) |
Sets the current depth render target.
| bool xl7::direct3d::StateMachine::SetFVF | ( | unsigned long | fvf | ) |
Sets the current flexible vertex format.
| bool xl7::direct3d::StateMachine::SetIndices | ( | IDirect3DIndexBuffer9 * | indices | ) |
Sets the current index buffer.
| bool xl7::direct3d::StateMachine::SetMaterial | ( | const D3DMATERIAL9 & | material | ) |
Sets the current material.
| bool xl7::direct3d::StateMachine::SetPixelShader | ( | IDirect3DPixelShader9 * | pixel_shader | ) |
Sets the current pixel shader.
| bool xl7::direct3d::StateMachine::SetProjectionTransform | ( | const ml7::Matrix4x4 & | projection | ) |
Sets the current projection transform matrix.
| bool xl7::direct3d::StateMachine::SetRenderState | ( | D3DRENDERSTATETYPE | rst, | |
| unsigned long | value | |||
| ) |
Sets the current value of a given render state.
| bool xl7::direct3d::StateMachine::SetRenderStateF | ( | D3DRENDERSTATETYPE | rst, | |
| float | value | |||
| ) |
Sets the current (float) value of a given render state.
| bool xl7::direct3d::StateMachine::SetSamplerState | ( | unsigned | stage, | |
| D3DSAMPLERSTATETYPE | ss, | |||
| unsigned long | value | |||
| ) |
Sets the current value of a given sampler state.
| bool xl7::direct3d::StateMachine::SetSamplerStateF | ( | unsigned | stage, | |
| D3DSAMPLERSTATETYPE | ss, | |||
| float | value | |||
| ) |
Sets the current (float) value of a given sampler state.
| bool xl7::direct3d::StateMachine::SetTexture | ( | unsigned | stage, | |
| IDirect3DBaseTexture9 * | texture | |||
| ) |
Sets the current texture of a given stage.
| bool xl7::direct3d::StateMachine::SetTextureState | ( | unsigned | stage, | |
| D3DTEXTURESTAGESTATETYPE | tss, | |||
| unsigned long | value | |||
| ) |
Sets the current value of a given texture stage state.
| bool xl7::direct3d::StateMachine::SetTextureStateF | ( | unsigned | stage, | |
| D3DTEXTURESTAGESTATETYPE | tss, | |||
| float | value | |||
| ) |
Sets the current (float) value of a given texture stage state.
| bool xl7::direct3d::StateMachine::SetVertexDeclaration | ( | IDirect3DVertexDeclaration9 * | vertex_decl | ) |
Sets the current vertex declaration.
| bool xl7::direct3d::StateMachine::SetVertexShader | ( | IDirect3DVertexShader9 * | vertex_shader | ) |
Sets the current vertex shader.
| bool xl7::direct3d::StateMachine::SetVertices | ( | IDirect3DVertexBuffer9 * | vertices, | |
| unsigned | stride | |||
| ) |
Sets the current vertex buffer.
| bool xl7::direct3d::StateMachine::SetVertices | ( | unsigned | index, | |
| IDirect3DVertexBuffer9 * | vertices, | |||
| unsigned | stride | |||
| ) |
Sets the current vertex buffer.
| bool xl7::direct3d::StateMachine::SetViewport | ( | const D3DVIEWPORT9 & | viewport | ) |
Sets the current viewport.
| bool xl7::direct3d::StateMachine::SetViewTransform | ( | const ml7::Matrix4x4 & | view | ) |
Sets the current view transform matrix.
| bool xl7::direct3d::StateMachine::SetWorldTransform | ( | const ml7::Matrix4x4 & | world | ) |
Sets the current world transform matrix.
1.7.1