RenderCmd2D Type
A 2D render command.
These commands are queued to a RenderBuffer and executed by Batch2DRenderer.
Union cases
| Union case |
Description
|
Full Usage:
ClearTarget(clearColor, clearDepth)
Parameters:
Color voption
clearDepth : bool
|
Clear the render target. Use between cameras in multi-camera setups.
|
|
Escape hatch: run an arbitrary draw function. The function is invoked outside of SpriteBatch (SpriteBatch is ended before calling it).
|
|
Set SpriteBatch blend state for subsequent draws.
|
|
Changes the camera transform for subsequent draws.
|
Full Usage:
SetDepthStencilState depthStencilState
Parameters:
DepthStencilState
|
Set SpriteBatch depth-stencil state for subsequent draws.
|
|
Set the SpriteBatch effect for subsequent draws. ValueNone means "use the renderer's configured default".
|
|
Set SpriteBatch rasterizer state for subsequent draws.
|
|
Set SpriteBatch sampler state for subsequent draws.
|
|
Set viewport for multi-camera rendering (split-screen, minimaps, etc).
|
Instance members
| Instance member |
Description
|
Full Usage:
this.IsClearTarget
Returns: bool
|
|
Full Usage:
this.IsDrawCustom
Returns: bool
|
|
Full Usage:
this.IsDrawTexture
Returns: bool
|
|
Full Usage:
this.IsSetBlendState
Returns: bool
|
|
Full Usage:
this.IsSetCamera
Returns: bool
|
|
Full Usage:
this.IsSetDepthStencilState
Returns: bool
|
|
Full Usage:
this.IsSetEffect
Returns: bool
|
|
Full Usage:
this.IsSetRasterizerState
Returns: bool
|
|
Full Usage:
this.IsSetSamplerState
Returns: bool
|
|
Full Usage:
this.IsSetViewport
Returns: bool
|
|
Mibo