Sprite |
public void Begin( BlendState blendState = null, SamplerState samplerState = null, DepthStencilState depthStencilState = null, RasterizerState rasterizerState = null, SpriteEffect spriteEffect = null )
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.
The default shader states are: blendState: DXDevice.CommonStates.PremultipliedAlphaBlend samplerState: DXDevice.CommonStates.ClampSampler depthStencilState: DXDevice.CommonStates.DepthNone rasterizerState: DXDevice.CommonStates.CullNone