Click or drag to resize
AB4D logo

SpriteBatchBegin(Matrix, BlendState, SamplerState, DepthStencilState, RasterizerState, SpriteEffect) Method

Begin method must be called before any Draw(ShaderResourceView, RectangleF, Boolean, Color4) or Draw(ShaderResourceView, RectangleF, RectangleF, Boolean, Color4) calls. The method sets common properties of all sprites that will be defined by Draw call. After all draw calls are done, the End method must be called.

Namespace: Ab3d.DirectX
Assembly: Ab3d.DXEngine (in Ab3d.DXEngine.dll) Version: 7.0.8865.1045
Syntax
C#
public void Begin(
	ref Matrix transformMatrix,
	BlendState blendState = null,
	SamplerState samplerState = null,
	DepthStencilState depthStencilState = null,
	RasterizerState rasterizerState = null,
	SpriteEffect spriteEffect = null
)

Parameters

transformMatrix  Matrix
matrix transformation
blendState  BlendState  (Optional)
BlendState
samplerState  SamplerState  (Optional)
SamplerState
depthStencilState  DepthStencilState  (Optional)
DepthStencilState
rasterizerState  RasterizerState  (Optional)
RasterizerState
spriteEffect  SpriteEffect  (Optional)
SpriteEffect (optional)
See Also